Skip to content

Commit c4eef18

Browse files
sync pipelineruns with konflux-central - 9c811aa
1 parent 4b2c1d9 commit c4eef18

17 files changed

+1114
-0
lines changed

.tekton/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# ⚠️ Do Not Modify Files in the `.tekton/` Directory Directly
2+
3+
> 🔴 **Do not edit `.tekton/` files directly in the component repositories.**
4+
5+
The `.tekton/` directory in each component repository is **automatically synchronized** from [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) using automation.
6+
7+
Any edits made directly to Tekton files in the component repositories will be **overwritten** by the next sync.
8+
All Tekton file updates **must be made in the `konflux-central` repository**.
9+
10+
---
11+
12+
## ✅ How to Make Changes
13+
14+
To update Tekton pipeline definitions:
15+
16+
1. Clone the [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) repository.
17+
2. Check out the respective release branch (e.g., `rhoai-2.22`) where you want to make updates.
18+
3. Navigate to `pipelineruns/<repository_name>/.tekton`.
19+
4. Make the required changes to the Tekton YAML files.
20+
5. Commit and push your changes.
21+
6. Once pushed, automation will automatically sync your updates to the corresponding component repository.
22+
23+
---
24+
25+
## 💡 Example
26+
27+
To modify the pipeline for `odh-dashboard` in the `rhoai-2.22` release:
28+
29+
```bash
30+
# Clone the konflux-central repository
31+
git clone [email protected]:red-hat-data-services/konflux-central.git
32+
33+
# Move into the repository directory
34+
cd konflux-central
35+
36+
# Checkout the release branch you want to update (e.g., rhoai-2.22)
37+
git checkout rhoai-2.22
38+
39+
# Navigate to the Tekton files for the specific component
40+
cd pipelineruns/odh-dashboard/.tekton
41+
42+
# Make your changes to the .yml/.yaml files here
43+
44+
# Stage and commit your changes with a meaningful commit message
45+
git commit -am "Update pipelinerun for odh-dashboard (rhoai-2.22)"
46+
47+
# Push the changes to the remote branch
48+
git push origin rhoai-2.22
49+
```
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/notebooks?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push"
13+
&& target_branch == "rhoai-2.22"
14+
&& ( (!".tekton/**".pathChanged()
15+
|| ".tekton/odh-pipeline-runtime-datascience-cpu-py311-ubi9-n-v2-22-push.yaml".pathChanged() )
16+
|| ("runtimes/datascience/ubi9-python-3.11/**".pathChanged() )
17+
&& !"manifests/base/params-latest.env".pathChanged()
18+
creationTimestamp: null
19+
labels:
20+
appstudio.openshift.io/application: external-rhoai-v2-22
21+
appstudio.openshift.io/component: odh-pipeline-runtime-datascience-cpu-py311-ubi9-n-v2-22
22+
pipelines.appstudio.openshift.io/type: build
23+
name: odh-pipeline-runtime-datascience-cpu-py311-ubi9-n-v2-22-on-push
24+
namespace: rhoai-tenant
25+
spec:
26+
params:
27+
- name: git-url
28+
value: '{{source_url}}'
29+
- name: revision
30+
value: '{{revision}}'
31+
- name: output-image
32+
value: quay.io/modh/odh-runtime-datascience-cpu-py311-ubi9:{{target_branch}}
33+
- name: additional-tags
34+
value:
35+
- '{{target_branch}}-{{revision}}'
36+
- name: dockerfile
37+
value: runtimes/datascience/ubi9-python-3.11/Dockerfile.cpu
38+
- name: path-context
39+
value: .
40+
- name: hermetic
41+
value: false
42+
- name: build-source-image
43+
value: false
44+
- name: build-image-index
45+
value: false
46+
- name: rebuild
47+
value: true
48+
- name: skip-checks
49+
value: true
50+
pipelineRef:
51+
resolver: git
52+
params:
53+
- name: url
54+
value: https://github.com/red-hat-data-services/konflux-central.git
55+
- name: revision
56+
value: '{{ target_branch }}'
57+
- name: pathInRepo
58+
value: pipelines/container-build.yaml
59+
taskRunTemplate:
60+
serviceAccountName: build-pipeline-odh-pipeline-runtime-datascience-cpu-py311-ubi9-n-v2-22
61+
workspaces:
62+
- name: git-auth
63+
secret:
64+
secretName: '{{ git_auth_secret }}'
65+
status: {}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: 'https://github.com/red-hat-data-services/notebooks?rev={{revision}}'
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: '3'
10+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push"
13+
&& target_branch == "rhoai-2.22"
14+
&& ( (!".tekton/**".pathChanged()
15+
|| ".tekton/odh-pipeline-runtime-minimal-cpu-py311-ubi9-n-v2-22-push.yaml".pathChanged())
16+
|| ("runtimes/minimal/ubi9-python-3.11/**".pathChanged() )
17+
&& !"manifests/base/params-latest.env".pathChanged()
18+
creationTimestamp: null
19+
labels:
20+
appstudio.openshift.io/application: external-rhoai-v2-22
21+
appstudio.openshift.io/component: odh-pipeline-runtime-minimal-cpu-py311-ubi9-n-v2-22
22+
pipelines.appstudio.openshift.io/type: build
23+
name: odh-pipeline-runtime-minimal-cpu-py311-ubi9-n-v2-22-on-push
24+
namespace: rhoai-tenant
25+
spec:
26+
params:
27+
- name: git-url
28+
value: '{{source_url}}'
29+
- name: revision
30+
value: '{{revision}}'
31+
- name: output-image
32+
value: quay.io/modh/odh-runtime-minimal-cpu-py311-ubi9:{{target_branch}}
33+
- name: additional-tags
34+
value:
35+
- '{{target_branch}}-{{revision}}'
36+
- name: dockerfile
37+
value: runtimes/minimal/ubi9-python-3.11/Dockerfile.cpu
38+
- name: path-context
39+
value: .
40+
- name: hermetic
41+
value: false
42+
- name: build-source-image
43+
value: false
44+
- name: build-image-index
45+
value: false
46+
- name: rebuild
47+
value: true
48+
- name: skip-checks
49+
value: true
50+
pipelineRef:
51+
resolver: git
52+
params:
53+
- name: url
54+
value: https://github.com/red-hat-data-services/konflux-central.git
55+
- name: revision
56+
value: '{{ target_branch }}'
57+
- name: pathInRepo
58+
value: pipelines/container-build.yaml
59+
taskRunTemplate:
60+
serviceAccountName: build-pipeline-odh-pipeline-runtime-minimal-cpu-py311-ubi9-n-v2-22
61+
workspaces:
62+
- name: git-auth
63+
secret:
64+
secretName: '{{ git_auth_secret }}'
65+
status: {}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/notebooks?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push"
13+
&& target_branch == "rhoai-2.22"
14+
&& ( (!".tekton/**".pathChanged()
15+
|| ".tekton/odh-pipeline-runtime-pytorch-cuda-py311-ubi9-n-v2-22-push.yaml".pathChanged())
16+
|| "runtimes/pytorch/ubi9-python-3.11/**".pathChanged()
17+
|| "cuda/**".pathChanged() )
18+
&& !"manifests/base/params-latest.env".pathChanged()
19+
creationTimestamp: null
20+
labels:
21+
appstudio.openshift.io/application: external-rhoai-v2-22
22+
appstudio.openshift.io/component: odh-pipeline-runtime-pytorch-cuda-py311-ubi9-n-v2-22
23+
pipelines.appstudio.openshift.io/type: build
24+
name: odh-pipeline-runtime-pytorch-cuda-py311-ubi9-n-v2-22-on-push
25+
namespace: rhoai-tenant
26+
spec:
27+
params:
28+
- name: git-url
29+
value: '{{source_url}}'
30+
- name: revision
31+
value: '{{revision}}'
32+
- name: output-image
33+
value: quay.io/modh/odh-runtime-pytorch-cuda-py311-ubi9:{{target_branch}}
34+
- name: additional-tags
35+
value:
36+
- '{{target_branch}}-{{revision}}'
37+
- name: dockerfile
38+
value: runtimes/pytorch/ubi9-python-3.11/Dockerfile.cuda
39+
- name: path-context
40+
value: .
41+
- name: hermetic
42+
value: false
43+
- name: build-source-image
44+
value: false
45+
- name: build-image-index
46+
value: false
47+
- name: rebuild
48+
value: true
49+
- name: skip-checks
50+
value: true
51+
pipelineRef:
52+
resolver: git
53+
params:
54+
- name: url
55+
value: https://github.com/red-hat-data-services/konflux-central.git
56+
- name: revision
57+
value: '{{ target_branch }}'
58+
- name: pathInRepo
59+
value: pipelines/container-build.yaml
60+
taskRunTemplate:
61+
serviceAccountName: build-pipeline-odh-pipeline-runtime-pytorch-cuda-py311-ubi9-n-v2-22
62+
workspaces:
63+
- name: git-auth
64+
secret:
65+
secretName: '{{ git_auth_secret }}'
66+
status: {}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/notebooks?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push"
13+
&& target_branch == "rhoai-2.22"
14+
&& ( (!".tekton/**".pathChanged()
15+
|| ".tekton/odh-pipeline-runtime-pytorch-rocm-py311-ubi9-n-v2-22-push.yaml".pathChanged())
16+
|| "runtimes/rocm-pytorch/ubi9-python-3.11/**".pathChanged() )
17+
&& !"manifests/base/params-latest.env".pathChanged()
18+
creationTimestamp: null
19+
labels:
20+
appstudio.openshift.io/application: external-rhoai-v2-22
21+
appstudio.openshift.io/component: odh-pipeline-runtime-pytorch-rocm-py311-ubi9-n-v2-22
22+
pipelines.appstudio.openshift.io/type: build
23+
name: odh-pipeline-runtime-pytorch-rocm-py311-ubi9-n-v2-22-on-push
24+
namespace: rhoai-tenant
25+
spec:
26+
timeouts:
27+
pipeline: 8h
28+
params:
29+
- name: git-url
30+
value: '{{source_url}}'
31+
- name: revision
32+
value: '{{revision}}'
33+
- name: output-image
34+
value: quay.io/modh/odh-runtime-pytorch-rocm-py311-ubi9:{{target_branch}}
35+
- name: additional-tags
36+
value:
37+
- '{{target_branch}}-{{revision}}'
38+
- name: dockerfile
39+
value: runtimes/rocm-pytorch/ubi9-python-3.11/Dockerfile.rocm
40+
- name: path-context
41+
value: .
42+
- name: hermetic
43+
value: false
44+
- name: build-source-image
45+
value: false
46+
- name: build-image-index
47+
value: false
48+
- name: rebuild
49+
value: true
50+
- name: skip-checks
51+
value: true
52+
pipelineRef:
53+
resolver: git
54+
params:
55+
- name: url
56+
value: https://github.com/red-hat-data-services/konflux-central.git
57+
- name: revision
58+
value: '{{ target_branch }}'
59+
- name: pathInRepo
60+
value: pipelines/container-build.yaml
61+
taskRunSpecs:
62+
- pipelineTaskName: clair-scan
63+
computeResources:
64+
requests:
65+
cpu: '8'
66+
memory: 16Gi
67+
limits:
68+
cpu: '16'
69+
memory: 32Gi
70+
taskRunTemplate:
71+
serviceAccountName: build-pipeline-odh-pipeline-runtime-pytorch-rocm-py311-ubi9-n-v2-22
72+
workspaces:
73+
- name: git-auth
74+
secret:
75+
secretName: '{{ git_auth_secret }}'
76+
status: {}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/notebooks?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "manifests/base/params-latest.env"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push"
13+
&& target_branch == "rhoai-2.22"
14+
&& ( (!".tekton/**".pathChanged()
15+
|| ".tekton/odh-pipeline-runtime-tensorflow-cuda-py311-ubi9-n-v2-22-push.yaml".pathChanged())
16+
|| "runtimes/tensorflow/ubi9-python-3.11/**".pathChanged()
17+
|| "cuda/**".pathChanged() )
18+
&& !"manifests/base/params-latest.env".pathChanged()
19+
creationTimestamp: null
20+
labels:
21+
appstudio.openshift.io/application: external-rhoai-v2-22
22+
appstudio.openshift.io/component: odh-pipeline-runtime-tensorflow-cuda-py311-ubi9-n-v2-22
23+
pipelines.appstudio.openshift.io/type: build
24+
name: odh-pipeline-runtime-tensorflow-cuda-py311-ubi9-n-v2-22-on-push
25+
namespace: rhoai-tenant
26+
spec:
27+
timeouts:
28+
pipeline: 8h
29+
params:
30+
- name: git-url
31+
value: '{{source_url}}'
32+
- name: revision
33+
value: '{{revision}}'
34+
- name: output-image
35+
value: quay.io/modh/odh-runtime-tensorflow-cuda-py311-ubi9:{{target_branch}}
36+
- name: additional-tags
37+
value:
38+
- '{{target_branch}}-{{revision}}'
39+
- name: dockerfile
40+
value: runtimes/tensorflow/ubi9-python-3.11/Dockerfile.cuda
41+
- name: path-context
42+
value: .
43+
- name: hermetic
44+
value: false
45+
- name: build-source-image
46+
value: false
47+
- name: build-image-index
48+
value: false
49+
- name: rebuild
50+
value: true
51+
- name: skip-checks
52+
value: true
53+
pipelineRef:
54+
resolver: git
55+
params:
56+
- name: url
57+
value: https://github.com/red-hat-data-services/konflux-central.git
58+
- name: revision
59+
value: '{{ target_branch }}'
60+
- name: pathInRepo
61+
value: pipelines/container-build.yaml
62+
taskRunTemplate:
63+
serviceAccountName: build-pipeline-odh-pipeline-runtime-tensorflow-cuda-py311-ubi9-n-v2-22
64+
workspaces:
65+
- name: git-auth
66+
secret:
67+
secretName: '{{ git_auth_secret }}'
68+
status: {}

0 commit comments

Comments
 (0)