Skip to content

Commit a50cdc9

Browse files
committed
Configure Tekton pipelines for RHOAI 3.4 Konflux builds
Adapt the Tekton PipelineRun configs for the red-hat-data-services fork targeting the rhoai-3.4 branch with the RHOAI 3.4 Konflux patterns. Signed-off-by: mprahl <mprahl@users.noreply.github.com>
1 parent 7341e56 commit a50cdc9

5 files changed

Lines changed: 135 additions & 109 deletions

File tree

.github/renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"github>red-hat-data-services/konflux-central//renovate/default-renovate.json"
5-
]
3+
"extends": ["github>red-hat-data-services/konflux-central//renovate/default-renovate.json"]
64
}

.tekton/mlflow-pull-request.yaml

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,70 @@ apiVersion: tekton.dev/v1
22
kind: PipelineRun
33
metadata:
44
annotations:
5-
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/mlflow?rev={{revision}}
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/mlflow?rev={{revision}}
66
build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8-
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
9-
pipelinesascode.tekton.dev/cancel-in-progress: "false"
8+
build.appstudio.redhat.com/pull_request_number: "{{pull_request_number}}"
109
pipelinesascode.tekton.dev/max-keep-runs: "3"
11-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
12-
== "master"
13-
creationTimestamp: null
10+
pipelinesascode.tekton.dev/on-comment: "^/build-konflux mlflow"
11+
pipelinesascode.tekton.dev/on-event: "[pull_request]"
12+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
1413
labels:
15-
appstudio.openshift.io/application: opendatahub-builds
16-
appstudio.openshift.io/component: mlflow-ci
14+
appstudio.openshift.io/application: automation
15+
appstudio.openshift.io/component: pull-request-pipelines-mlflow
1716
pipelines.appstudio.openshift.io/type: build
1817
name: mlflow-on-pull-request
19-
namespace: open-data-hub-tenant
18+
namespace: rhoai-tenant
2019
spec:
2120
params:
2221
- name: git-url
2322
value: '{{source_url}}'
2423
- name: revision
2524
value: '{{revision}}'
25+
- name: additional-tags
26+
value:
27+
- 'pr-{{pull_request_number}}-into-{{target_branch}}'
28+
- name: additional-labels
29+
value:
30+
- version=on-pr-{{revision}}
31+
- io.openshift.tags=mlflow
2632
- name: output-image
27-
value: quay.io/opendatahub/mlflow:odh-pr
33+
value: quay.io/rhoai/pull-request-pipelines:mlflow-{{revision}}
34+
- name: rhoai-version
35+
value: "3.4.0-ea.1"
2836
- name: dockerfile
2937
value: Dockerfile.konflux
3038
- name: path-context
3139
value: .
32-
- name: additional-tags
33-
value:
34-
- 'odh-pr-{{revision}}'
3540
- name: hermetic
3641
value: false
3742
- name: prefetch-input
38-
value: '[{"type": "pip", "path": ".", "requirements_files": ["requirements/konflux-pypi.txt"]}, {"type": "rpm", "path": "requirements"}]'
39-
- name: pipeline-type
40-
value: pull-request
43+
value: |
44+
[{"type": "pip", "path": ".", "requirements_files": ["requirements/konflux-pypi.txt"]}, {"type": "rpm", "path": "requirements"}]
45+
- name: build-source-image
46+
value: true
47+
- name: build-image-index
48+
value: true
4149
- name: build-platforms
4250
value:
4351
- linux-extra-fast/amd64
52+
- linux-m2xlarge/arm64
53+
- linux/ppc64le
54+
- name: image-expires-after
55+
value: 5d
56+
- name: enable-slack-failure-notification
57+
value: "false"
4458
pipelineRef:
4559
resolver: git
4660
params:
4761
- name: url
48-
value: https://github.com/opendatahub-io/odh-konflux-central.git
62+
value: https://github.com/red-hat-data-services/konflux-central.git
4963
- name: revision
50-
value: main
64+
value: '{{ target_branch }}'
5165
- name: pathInRepo
52-
value: pipeline/multi-arch-container-build.yaml
66+
value: pipelines/multi-arch-container-build.yaml
5367
taskRunTemplate:
54-
serviceAccountName: build-pipeline-mlflow
68+
serviceAccountName: build-pipeline-pull-request-pipelines
5569
workspaces:
5670
- name: git-auth
5771
secret:

.tekton/mlflow-push.yaml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,63 @@ apiVersion: tekton.dev/v1
22
kind: PipelineRun
33
metadata:
44
annotations:
5-
build.appstudio.openshift.io/repo: https://github.com/opendatahub-io/mlflow?rev={{revision}}
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/mlflow?rev={{revision}}
66
build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8-
pipelinesascode.tekton.dev/cancel-in-progress: "false"
98
pipelinesascode.tekton.dev/max-keep-runs: "3"
10-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11-
== "master"
9+
pipelinesascode.tekton.dev/on-cel-expression: |
10+
event == "push"
11+
&& target_branch == "rhoai-3.4"
12+
&& ( !".tekton/**".pathChanged() || ".tekton/mlflow-push.yaml".pathChanged() )
1213
creationTimestamp: null
1314
labels:
14-
appstudio.openshift.io/application: opendatahub-builds
15-
appstudio.openshift.io/component: mlflow-ci
15+
appstudio.openshift.io/application: rhoai-v3-4
16+
appstudio.openshift.io/component: mlflow-v3-4
1617
pipelines.appstudio.openshift.io/type: build
17-
name: mlflow-on-push
18-
namespace: open-data-hub-tenant
18+
name: mlflow-v3-4-on-push
19+
namespace: rhoai-tenant
1920
spec:
2021
params:
2122
- name: git-url
2223
value: '{{source_url}}'
2324
- name: revision
2425
value: '{{revision}}'
26+
- name: additional-tags
27+
value:
28+
- '{{target_branch}}-{{revision}}'
2529
- name: output-image
26-
value: quay.io/opendatahub/mlflow:odh-stable
30+
value: quay.io/rhoai/odh-mlflow-rhel9:{{target_branch}}
31+
- name: rhoai-version
32+
value: "3.4.0-ea.1"
2733
- name: dockerfile
2834
value: Dockerfile.konflux
2935
- name: path-context
3036
value: .
3137
- name: hermetic
3238
value: false
3339
- name: prefetch-input
34-
value: '[{"type": "pip", "path": ".", "requirements_files": ["requirements/konflux-pypi.txt"]}, {"type": "rpm", "path": "requirements"}]'
40+
value: |
41+
[{"type": "pip", "path": ".", "requirements_files": ["requirements/konflux-pypi.txt"]}, {"type": "rpm", "path": "requirements"}]
42+
- name: build-source-image
43+
value: true
44+
- name: build-image-index
45+
value: true
3546
- name: build-platforms
3647
value:
3748
- linux-extra-fast/amd64
49+
- linux-m2xlarge/arm64
50+
- linux/ppc64le
3851
pipelineRef:
3952
resolver: git
4053
params:
4154
- name: url
42-
value: https://github.com/opendatahub-io/odh-konflux-central.git
55+
value: https://github.com/red-hat-data-services/konflux-central.git
4356
- name: revision
44-
value: main
57+
value: '{{ target_branch }}'
4558
- name: pathInRepo
46-
value: pipeline/multi-arch-container-build.yaml
59+
value: pipelines/multi-arch-container-build.yaml
4760
taskRunTemplate:
48-
serviceAccountName: build-pipeline-mlflow
61+
serviceAccountName: build-pipeline-mlflow-v3-4
4962
workspaces:
5063
- name: git-auth
5164
secret:

requirements/rpms.lock.yaml

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -2,75 +2,75 @@
22
lockfileVersion: 1
33
lockfileVendor: redhat
44
arches:
5-
- arch: aarch64
6-
packages:
7-
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/appstream/os/Packages/o/openblas-0.3.29-1.el9.aarch64.rpm
8-
repoid: ubi-9-for-aarch64-appstream-rpms
9-
size: 43101
10-
checksum: sha256:36da31a22dd56a05028ff4f0eac750164174f806abb30831840b969cc6bb19c6
11-
name: openblas
12-
evr: 0.3.29-1.el9
13-
sourcerpm: openblas-0.3.29-1.el9.src.rpm
14-
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/codeready-builder/os/Packages/o/openblas-threads-0.3.29-1.el9.aarch64.rpm
15-
repoid: ubi-9-for-aarch64-codeready-builder-rpms
16-
size: 3825499
17-
checksum: sha256:bf39666abbcf73859d258ffd63ad9b94f4cac346aa407454e971f527db2f0e76
18-
name: openblas-threads
19-
evr: 0.3.29-1.el9
20-
sourcerpm: openblas-0.3.29-1.el9.src.rpm
21-
source:
22-
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/appstream/source/SRPMS/Packages/o/openblas-0.3.29-1.el9.src.rpm
23-
repoid: ubi-9-for-aarch64-appstream-source-rpms
24-
size: 23777279
25-
checksum: sha256:4a1fd34e0b3bf712dc3810823ec4c57df6806c6110d30d160ffc91face8f80bd
26-
name: openblas
27-
evr: 0.3.29-1.el9
28-
module_metadata: []
29-
- arch: ppc64le
30-
packages:
31-
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/ppc64le/appstream/os/Packages/o/openblas-0.3.29-1.el9.ppc64le.rpm
32-
repoid: ubi-9-for-ppc64le-appstream-rpms
33-
size: 43121
34-
checksum: sha256:46d0525be8d2581a2e4cad8d25413171df8b5c504b2b43014a92e49abe081983
35-
name: openblas
36-
evr: 0.3.29-1.el9
37-
sourcerpm: openblas-0.3.29-1.el9.src.rpm
38-
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/ppc64le/codeready-builder/os/Packages/o/openblas-threads-0.3.29-1.el9.ppc64le.rpm
39-
repoid: ubi-9-for-ppc64le-codeready-builder-rpms
40-
size: 4652547
41-
checksum: sha256:040dd5e1c29140acefd8210cef7027f6479ff397dd1617a503bfb7591265bb3e
42-
name: openblas-threads
43-
evr: 0.3.29-1.el9
44-
sourcerpm: openblas-0.3.29-1.el9.src.rpm
45-
source:
46-
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/ppc64le/appstream/source/SRPMS/Packages/o/openblas-0.3.29-1.el9.src.rpm
47-
repoid: ubi-9-for-ppc64le-appstream-source-rpms
48-
size: 23777279
49-
checksum: sha256:4a1fd34e0b3bf712dc3810823ec4c57df6806c6110d30d160ffc91face8f80bd
50-
name: openblas
51-
evr: 0.3.29-1.el9
52-
module_metadata: []
53-
- arch: x86_64
54-
packages:
55-
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/appstream/os/Packages/o/openblas-0.3.29-1.el9.x86_64.rpm
56-
repoid: ubi-9-for-x86_64-appstream-rpms
57-
size: 43115
58-
checksum: sha256:8e0936be32a50acb14286520fa8334b9f2d89bae1d6ae0c2ca6f4ddbe931beab
59-
name: openblas
60-
evr: 0.3.29-1.el9
61-
sourcerpm: openblas-0.3.29-1.el9.src.rpm
62-
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/codeready-builder/os/Packages/o/openblas-threads-0.3.29-1.el9.x86_64.rpm
63-
repoid: ubi-9-for-x86_64-codeready-builder-rpms
64-
size: 5526706
65-
checksum: sha256:143aa15bdcd6ca40169a9e7c225604fa934907398e57dd7091853c55f648904c
66-
name: openblas-threads
67-
evr: 0.3.29-1.el9
68-
sourcerpm: openblas-0.3.29-1.el9.src.rpm
69-
source:
70-
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/appstream/source/SRPMS/Packages/o/openblas-0.3.29-1.el9.src.rpm
71-
repoid: ubi-9-for-x86_64-appstream-source-rpms
72-
size: 23777279
73-
checksum: sha256:4a1fd34e0b3bf712dc3810823ec4c57df6806c6110d30d160ffc91face8f80bd
74-
name: openblas
75-
evr: 0.3.29-1.el9
76-
module_metadata: []
5+
- arch: aarch64
6+
packages:
7+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/appstream/os/Packages/o/openblas-0.3.29-1.el9.aarch64.rpm
8+
repoid: ubi-9-for-aarch64-appstream-rpms
9+
size: 43101
10+
checksum: sha256:36da31a22dd56a05028ff4f0eac750164174f806abb30831840b969cc6bb19c6
11+
name: openblas
12+
evr: 0.3.29-1.el9
13+
sourcerpm: openblas-0.3.29-1.el9.src.rpm
14+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/codeready-builder/os/Packages/o/openblas-threads-0.3.29-1.el9.aarch64.rpm
15+
repoid: ubi-9-for-aarch64-codeready-builder-rpms
16+
size: 3825499
17+
checksum: sha256:bf39666abbcf73859d258ffd63ad9b94f4cac346aa407454e971f527db2f0e76
18+
name: openblas-threads
19+
evr: 0.3.29-1.el9
20+
sourcerpm: openblas-0.3.29-1.el9.src.rpm
21+
source:
22+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/appstream/source/SRPMS/Packages/o/openblas-0.3.29-1.el9.src.rpm
23+
repoid: ubi-9-for-aarch64-appstream-source-rpms
24+
size: 23777279
25+
checksum: sha256:4a1fd34e0b3bf712dc3810823ec4c57df6806c6110d30d160ffc91face8f80bd
26+
name: openblas
27+
evr: 0.3.29-1.el9
28+
module_metadata: []
29+
- arch: ppc64le
30+
packages:
31+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/ppc64le/appstream/os/Packages/o/openblas-0.3.29-1.el9.ppc64le.rpm
32+
repoid: ubi-9-for-ppc64le-appstream-rpms
33+
size: 43121
34+
checksum: sha256:46d0525be8d2581a2e4cad8d25413171df8b5c504b2b43014a92e49abe081983
35+
name: openblas
36+
evr: 0.3.29-1.el9
37+
sourcerpm: openblas-0.3.29-1.el9.src.rpm
38+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/ppc64le/codeready-builder/os/Packages/o/openblas-threads-0.3.29-1.el9.ppc64le.rpm
39+
repoid: ubi-9-for-ppc64le-codeready-builder-rpms
40+
size: 4652547
41+
checksum: sha256:040dd5e1c29140acefd8210cef7027f6479ff397dd1617a503bfb7591265bb3e
42+
name: openblas-threads
43+
evr: 0.3.29-1.el9
44+
sourcerpm: openblas-0.3.29-1.el9.src.rpm
45+
source:
46+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/ppc64le/appstream/source/SRPMS/Packages/o/openblas-0.3.29-1.el9.src.rpm
47+
repoid: ubi-9-for-ppc64le-appstream-source-rpms
48+
size: 23777279
49+
checksum: sha256:4a1fd34e0b3bf712dc3810823ec4c57df6806c6110d30d160ffc91face8f80bd
50+
name: openblas
51+
evr: 0.3.29-1.el9
52+
module_metadata: []
53+
- arch: x86_64
54+
packages:
55+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/appstream/os/Packages/o/openblas-0.3.29-1.el9.x86_64.rpm
56+
repoid: ubi-9-for-x86_64-appstream-rpms
57+
size: 43115
58+
checksum: sha256:8e0936be32a50acb14286520fa8334b9f2d89bae1d6ae0c2ca6f4ddbe931beab
59+
name: openblas
60+
evr: 0.3.29-1.el9
61+
sourcerpm: openblas-0.3.29-1.el9.src.rpm
62+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/codeready-builder/os/Packages/o/openblas-threads-0.3.29-1.el9.x86_64.rpm
63+
repoid: ubi-9-for-x86_64-codeready-builder-rpms
64+
size: 5526706
65+
checksum: sha256:143aa15bdcd6ca40169a9e7c225604fa934907398e57dd7091853c55f648904c
66+
name: openblas-threads
67+
evr: 0.3.29-1.el9
68+
sourcerpm: openblas-0.3.29-1.el9.src.rpm
69+
source:
70+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/appstream/source/SRPMS/Packages/o/openblas-0.3.29-1.el9.src.rpm
71+
repoid: ubi-9-for-x86_64-appstream-source-rpms
72+
size: 23777279
73+
checksum: sha256:4a1fd34e0b3bf712dc3810823ec4c57df6806c6110d30d160ffc91face8f80bd
74+
name: openblas
75+
evr: 0.3.29-1.el9
76+
module_metadata: []

uv.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)