Skip to content

Commit

Permalink
Update tekton task to not use deprecated clusterTask and add support …
Browse files Browse the repository at this point in the history
…matric for pipeline operator

Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Dec 17, 2024
1 parent aba7eeb commit 4b60877
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
13 changes: 13 additions & 0 deletions docs/gitops/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ You can use the Janus IDP Demo repository to install the `Red Hat OpenShift Pipe

The OpenShift Pipelines Operator can be installed directly from the OperatorHub. Select the operator from the list and install it without any special configuration.

Make sure you install an OpenShift Pipelines Operator's version compatible with your Orchestrator Operator's version:

| OpenShift Pipelines Operator version | Orchestrator Operator Version |
|-----------------------------------------------|--------------------------------|
| 4.11 |1.3.x |
| 4.12 |1.3.x |
| 4.13 |1.3.x |
| 4.14 |1.3.x |
| 4.15 |1.3.x |
| 4.16 |1.3.x |
| 4.17 |1.4.x |


### Install OpenShift GitOps Operator

To install the OpenShift GitOps Operator with custom configuration:
Expand Down
12 changes: 9 additions & 3 deletions helm-charts/orchestrator/templates/tekton-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,14 @@ spec:
- name: build-and-push-image
runAfter: ["flatten-workflow"]
taskRef:
name: buildah
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: buildah
- name: namespace
value: openshift-pipelines
workspaces:
- name: source
workspace: workflow-source
Expand All @@ -130,7 +136,7 @@ spec:
- name: CONTEXT
value: flat/$(params.workflowId)
- name: BUILD_EXTRA_ARGS
value: '--authfile=/workspace/dockerconfig/.dockerconfigjson --ulimit nofile=4096:4096 --build-arg WF_RESOURCES="." '
value: '--authfile=/workspace/dockerconfig/.dockerconfigjson --ulimit nofile=4096:4096 --build-arg WF_RESOURCES=. '
- name: push-workflow-gitops
runAfter: ["build-gitops", "build-and-push-image"]
taskRef:
Expand Down

0 comments on commit 4b60877

Please sign in to comment.