mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
e294e1246b
Prior to this change, the installation instructions directly use the resource urls in the Catalog repo, which results in tight coupling between the organization and how users fetch resources (as described in TEP-0110). This commit updates the installation guide to install Tekton Catalog resources via Tekton Hub Api: https://github.com/tektoncd/hub/pull/539 This change decouples the Tekton Catalog organization from resouces resolution, which enables Tekton Catalog reorganization. |
||
---|---|---|
.. | ||
tests | ||
README.md | ||
yq.yaml |
YQ Task
The following task is used to replace a specific field in a yaml in the workspace.
Installing the Task
kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/yq/0.3/raw
Parameters
- files: A list of files within the workspace to execute the in-place yq expression on.
- expression: The actual YQ expression to execute on this file. Checkout the excellent documentation at https://github.com/mikefarah/yq. ="$(params.new-image-sha)"'
- image: The
yq
image to use. (default: docker.io/mikefarah/yq:4.16.2@sha256:0d4f6e27bdcac7316f635acd524ab0eecc4ad50834b54d10322268650c7712cb)
Workspaces
- source : The workspace containing files on which we want to do the replacement on a single file.
Platforms
The Task can be run on linux/amd64
platform.
Usage
For a real usage example checkout the tests directory of this task for an example on how this task can be used on a Github repository. This can be used together with other git actions to commit such changes towards a GitOps repository for example which is automatically reconciled towards your infrastructure.