Skip to content

Commit 2ba0424

Browse files
sync pipelineruns with konflux-central - de8b652
1 parent d3aaa88 commit 2ba0424

File tree

31 files changed

+2259
-0
lines changed

31 files changed

+2259
-0
lines changed

.tekton/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# ⚠️ Do Not Modify Files in the `.tekton/` Directory Directly
2+
3+
The `.tekton/` directory in each component repository is **automatically synchronized** from [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) using automation. Any edits made directly to Tekton files in the component repositories will be **overwritten** by the next sync.
4+
5+
All Tekton file updates **must be made in the `konflux-central` repository**.
6+
7+
## ✅ How to Make Changes
8+
9+
To modify the pipelines for `notebooks` in the `main` branch:
10+
11+
- Clone the [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) repository.
12+
13+
```bash
14+
git clone [email protected]:red-hat-data-services/konflux-central.git
15+
cd konflux-central
16+
```
17+
18+
- Check out the branch
19+
20+
```bash
21+
git checkout main
22+
```
23+
24+
- Navigate to the Tekton files for your component(s).
25+
26+
```bash
27+
cd pipelineruns/notebooks/.tekton
28+
```
29+
30+
- Make the required changes to the Tekton YAML files.
31+
32+
- Commit and push your changes.
33+
34+
```bash
35+
git commit -am "Update pipelinerun for notebooks (main)"
36+
git push origin main
37+
```
38+
39+
- Once pushed, automation will automatically sync your updates to the corresponding component repository.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
# retrigger Konflux builds to fix https://issues.redhat.com/browse/RHOAIENG-31914
4+
metadata:
5+
annotations:
6+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/notebooks?rev={{revision}}
7+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
10+
pipelinesascode.tekton.dev/max-keep-runs: "3"
11+
pipelinesascode.tekton.dev/on-comment: "^/build-konflux"
12+
pipelinesascode.tekton.dev/on-event: "[pull_request]"
13+
labels:
14+
appstudio.openshift.io/application: automation
15+
appstudio.openshift.io/component: pull-request-pipelines-notebooks
16+
pipelines.appstudio.openshift.io/type: build
17+
name: odh-pipeline-runtime-datascience-cpu-py311-on-pull-request
18+
namespace: rhoai-tenant
19+
spec:
20+
params:
21+
- name: git-url
22+
value: '{{source_url}}'
23+
- name: revision
24+
value: '{{revision}}'
25+
- name: output-image
26+
value: quay.io/rhoai/pull-request-pipelines:notebooks-{{revision}}
27+
- name: additional-tags
28+
value:
29+
- '{{target_branch}}-{{revision}}'
30+
- name: additional-labels
31+
value:
32+
- version=on-pr-{{revision}}
33+
- io.openshift.tags=odh-pipeline-runtime-datascience-cpu-py311
34+
- name: dockerfile
35+
value: runtimes/datascience/ubi9-python-3.11/Dockerfile.konflux.cpu
36+
- name: path-context
37+
value: .
38+
- name: hermetic
39+
value: false
40+
- name: build-image-index
41+
value: true
42+
- name: build-platforms
43+
value:
44+
- linux/x86_64
45+
- name: image-expires-after
46+
value: 5d
47+
pipelineRef:
48+
resolver: git
49+
params:
50+
- name: url
51+
value: https://github.com/red-hat-data-services/konflux-central.git
52+
- name: revision
53+
value: '{{ target_branch }}'
54+
- name: pathInRepo
55+
value: pipelines/multi-arch-container-build.yaml
56+
taskRunTemplate:
57+
serviceAccountName: build-pipeline-pull-request-pipelines
58+
workspaces:
59+
- name: git-auth
60+
secret:
61+
secretName: '{{ git_auth_secret }}'
62+
status: {}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
# retrigger Konflux builds to fix https://issues.redhat.com/browse/RHOAIENG-31914
4+
metadata:
5+
annotations:
6+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/notebooks?rev={{revision}}
7+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
10+
pipelinesascode.tekton.dev/max-keep-runs: "3"
11+
pipelinesascode.tekton.dev/on-comment: "^/build-konflux"
12+
pipelinesascode.tekton.dev/on-event: "[pull_request]"
13+
labels:
14+
appstudio.openshift.io/application: automation
15+
appstudio.openshift.io/component: pull-request-pipelines-notebooks
16+
pipelines.appstudio.openshift.io/type: build
17+
name: odh-pipeline-runtime-datascience-cpu-py312-on-pull-request
18+
namespace: rhoai-tenant
19+
spec:
20+
params:
21+
- name: git-url
22+
value: '{{source_url}}'
23+
- name: revision
24+
value: '{{revision}}'
25+
- name: output-image
26+
value: quay.io/rhoai/pull-request-pipelines:notebooks-{{revision}}
27+
- name: additional-tags
28+
value:
29+
- '{{target_branch}}-{{revision}}'
30+
- name: additional-labels
31+
value:
32+
- version=on-pr-{{revision}}
33+
- io.openshift.tags=odh-pipeline-runtime-datascience-cpu-py312
34+
- name: dockerfile
35+
value: runtimes/datascience/ubi9-python-3.12/Dockerfile.konflux.cpu
36+
- name: path-context
37+
value: .
38+
- name: hermetic
39+
value: false
40+
- name: build-image-index
41+
value: true
42+
- name: build-platforms
43+
value:
44+
- linux/x86_64
45+
- name: image-expires-after
46+
value: 5d
47+
pipelineRef:
48+
resolver: git
49+
params:
50+
- name: url
51+
value: https://github.com/red-hat-data-services/konflux-central.git
52+
- name: revision
53+
value: '{{ target_branch }}'
54+
- name: pathInRepo
55+
value: pipelines/multi-arch-container-build.yaml
56+
taskRunTemplate:
57+
serviceAccountName: build-pipeline-pull-request-pipelines
58+
workspaces:
59+
- name: git-auth
60+
secret:
61+
secretName: '{{ git_auth_secret }}'
62+
status: {}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
# retrigger Konflux builds to fix https://issues.redhat.com/browse/RHOAIENG-31914
4+
metadata:
5+
annotations:
6+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/notebooks?rev={{revision}}
7+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
10+
pipelinesascode.tekton.dev/max-keep-runs: "3"
11+
pipelinesascode.tekton.dev/on-comment: "^/build-konflux"
12+
pipelinesascode.tekton.dev/on-event: "[pull_request]"
13+
labels:
14+
appstudio.openshift.io/application: automation
15+
appstudio.openshift.io/component: pull-request-pipelines-notebooks
16+
pipelines.appstudio.openshift.io/type: build
17+
name: odh-pipeline-runtime-minimal-cpu-py311-on-pull-request
18+
namespace: rhoai-tenant
19+
spec:
20+
params:
21+
- name: git-url
22+
value: '{{source_url}}'
23+
- name: revision
24+
value: '{{revision}}'
25+
- name: output-image
26+
value: quay.io/rhoai/pull-request-pipelines:notebooks-{{revision}}
27+
- name: additional-tags
28+
value:
29+
- '{{target_branch}}-{{revision}}'
30+
- name: additional-labels
31+
value:
32+
- version=on-pr-{{revision}}
33+
- io.openshift.tags=odh-pipeline-runtime-minimal-cpu-py311
34+
- name: dockerfile
35+
value: runtimes/minimal/ubi9-python-3.11/Dockerfile.konflux.cpu
36+
- name: path-context
37+
value: .
38+
- name: hermetic
39+
value: false
40+
- name: build-image-index
41+
value: true
42+
- name: build-platforms
43+
value:
44+
- linux/x86_64
45+
- name: image-expires-after
46+
value: 5d
47+
pipelineRef:
48+
resolver: git
49+
params:
50+
- name: url
51+
value: https://github.com/red-hat-data-services/konflux-central.git
52+
- name: revision
53+
value: '{{ target_branch }}'
54+
- name: pathInRepo
55+
value: pipelines/multi-arch-container-build.yaml
56+
taskRunTemplate:
57+
serviceAccountName: build-pipeline-pull-request-pipelines
58+
workspaces:
59+
- name: git-auth
60+
secret:
61+
secretName: '{{ git_auth_secret }}'
62+
status: {}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
# retrigger Konflux builds to fix https://issues.redhat.com/browse/RHOAIENG-31914
4+
metadata:
5+
annotations:
6+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/notebooks?rev={{revision}}
7+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
10+
pipelinesascode.tekton.dev/max-keep-runs: "3"
11+
pipelinesascode.tekton.dev/on-comment: "^/build-konflux"
12+
pipelinesascode.tekton.dev/on-event: "[pull_request]"
13+
pipelinesascode.tekton.dev/on-cel-expression: |
14+
labels:
15+
appstudio.openshift.io/application: automation
16+
appstudio.openshift.io/component: pull-request-pipelines-notebooks
17+
pipelines.appstudio.openshift.io/type: build
18+
name: odh-pipeline-runtime-minimal-cpu-py312-on-pull-request
19+
namespace: rhoai-tenant
20+
spec:
21+
params:
22+
- name: git-url
23+
value: '{{source_url}}'
24+
- name: revision
25+
value: '{{revision}}'
26+
- name: output-image
27+
value: quay.io/rhoai/pull-request-pipelines:notebooks-{{revision}}
28+
- name: additional-tags
29+
value:
30+
- '{{target_branch}}-{{revision}}'
31+
- name: additional-labels
32+
value:
33+
- version=on-pr-{{revision}}
34+
- io.openshift.tags=odh-pipeline-runtime-minimal-cpu-py312
35+
- name: dockerfile
36+
value: runtimes/minimal/ubi9-python-3.12/Dockerfile.cpu
37+
- name: path-context
38+
value: .
39+
- name: hermetic
40+
value: false
41+
- name: build-image-index
42+
value: true
43+
- name: build-platforms
44+
value:
45+
- linux/x86_64
46+
- name: image-expires-after
47+
value: 5d
48+
pipelineRef:
49+
resolver: git
50+
params:
51+
- name: url
52+
value: https://github.com/red-hat-data-services/konflux-central.git
53+
- name: revision
54+
value: '{{ target_branch }}'
55+
- name: pathInRepo
56+
value: pipelines/multi-arch-container-build.yaml
57+
taskRunTemplate:
58+
serviceAccountName: build-pipeline-pull-request-pipelines
59+
workspaces:
60+
- name: git-auth
61+
secret:
62+
secretName: '{{ git_auth_secret }}'
63+
status: {}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
# retrigger Konflux builds to fix https://issues.redhat.com/browse/RHOAIENG-31914
4+
metadata:
5+
annotations:
6+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/notebooks?rev={{revision}}
7+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
10+
pipelinesascode.tekton.dev/max-keep-runs: "3"
11+
pipelinesascode.tekton.dev/on-comment: "^/build-konflux"
12+
pipelinesascode.tekton.dev/on-event: "[pull_request]"
13+
appstudio.openshift.io/application: automation
14+
appstudio.openshift.io/component: pull-request-pipelines-notebooks
15+
pipelines.appstudio.openshift.io/type: build
16+
name: odh-pipeline-runtime-pytorch-cuda-py311-on-pull-request
17+
namespace: rhoai-tenant
18+
spec:
19+
params:
20+
- name: git-url
21+
value: '{{source_url}}'
22+
- name: revision
23+
value: '{{revision}}'
24+
- name: output-image
25+
value: quay.io/rhoai/pull-request-pipelines:notebooks-{{revision}}
26+
- name: additional-tags
27+
value:
28+
- '{{target_branch}}-{{revision}}'
29+
- name: additional-labels
30+
value:
31+
- version=on-pr-{{revision}}
32+
- io.openshift.tags=odh-pipeline-runtime-pytorch-cuda-py311
33+
- name: dockerfile
34+
value: runtimes/pytorch/ubi9-python-3.11/Dockerfile.konflux.cuda
35+
- name: path-context
36+
value: .
37+
- name: hermetic
38+
value: false
39+
- name: build-image-index
40+
value: true
41+
- name: build-platforms
42+
value:
43+
- linux/x86_64
44+
- name: image-expires-after
45+
value: 5d
46+
pipelineRef:
47+
resolver: git
48+
params:
49+
- name: url
50+
value: https://github.com/red-hat-data-services/konflux-central.git
51+
- name: revision
52+
value: '{{ target_branch }}'
53+
- name: pathInRepo
54+
value: pipelines/multi-arch-container-build.yaml
55+
taskRunTemplate:
56+
serviceAccountName: build-pipeline-pull-request-pipelines
57+
timeouts:
58+
pipeline: 8h
59+
tasks: 4h
60+
taskRunSpecs:
61+
- pipelineTaskName: ecosystem-cert-preflight-checks
62+
computeResources:
63+
requests:
64+
cpu: '8'
65+
memory: 16Gi
66+
limits:
67+
cpu: '16'
68+
memory: 32Gi
69+
- pipelineTaskName: clair-scan
70+
computeResources:
71+
requests:
72+
cpu: '8'
73+
memory: 16Gi
74+
limits:
75+
cpu: '16'
76+
memory: 32Gi
77+
workspaces:
78+
- name: git-auth
79+
secret:
80+
secretName: '{{ git_auth_secret }}'
81+
status: {}

0 commit comments

Comments
 (0)