Skip to content

Commit 332402f

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 332402f

2 files changed

Lines changed: 63 additions & 36 deletions

File tree

.tekton/mlflow-pull-request.yaml

Lines changed: 35 additions & 21 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:
43-
- linux-extra-fast/amd64
51+
- linux/x86_64
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: 28 additions & 15 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:
37-
- linux-extra-fast/amd64
48+
- linux/x86_64
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:

0 commit comments

Comments
 (0)