Skip to content

Commit 360de18

Browse files
committed
feat: Update image target for odh-dashboard and add mod-arch-model-registry configuration
1 parent 83b6ff7 commit 360de18

5 files changed

+162
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
build_root:
2+
image_stream_tag:
3+
name: release
4+
namespace: openshift
5+
tag: rhel-8-release-golang-1.17-openshift-4.10
6+
images:
7+
- context_dir: .
8+
dockerfile_path: ./packages/model-registry/Dockerfile.workspace
9+
to: odh-mod-arch-model-registry-image
10+
promotion:
11+
to:
12+
- namespace: opendatahub-io
13+
tag: main
14+
releases:
15+
latest:
16+
release:
17+
architecture: amd64
18+
channel: fast
19+
version: "4.10"
20+
resources:
21+
'*':
22+
requests:
23+
cpu: 200m
24+
memory: 400Mi
25+
tests:
26+
- as: odh-mod-arch-model-registry-pr-image-mirror
27+
steps:
28+
dependencies:
29+
SOURCE_IMAGE_REF: odh-mod-arch-model-registry-image
30+
env:
31+
IMAGE_REPO: odh-mod-arch-modular-architecture
32+
workflow: opendatahub-io-ci-image-mirror
33+
zz_generated_metadata:
34+
branch: main
35+
org: opendatahub-io
36+
repo: odh-dashboard
37+
variant: mod-arch-model-registry

ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-postsubmits.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ postsubmits:
2121
- --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson
2222
- --promote
2323
- --report-credentials-file=/etc/report/credentials
24-
- --target=[images]
24+
- --target=odh-dashboard-image
2525
command:
2626
- ci-operator
2727
image: ci-operator:latest

ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-presubmits.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ presubmits:
2121
- --gcs-upload-secret=/secrets/gcs/service-account.json
2222
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
2323
- --report-credentials-file=/etc/report/credentials
24-
- --target=[images]
24+
- --target=odh-dashboard-image
2525
command:
2626
- ci-operator
2727
image: ci-operator:latest
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
postsubmits:
2+
opendatahub-io/odh-dashboard:
3+
- agent: kubernetes
4+
always_run: true
5+
branches:
6+
- ^main$
7+
cluster: build07
8+
decorate: true
9+
decoration_config:
10+
skip_cloning: true
11+
labels:
12+
ci-operator.openshift.io/is-promotion: "true"
13+
ci.openshift.io/generator: prowgen
14+
max_concurrency: 1
15+
name: branch-ci-opendatahub-io-odh-dashboard-main__mod-arch-model-registry-odh-mod-arch-model-registry-image
16+
spec:
17+
containers:
18+
- args:
19+
- --gcs-upload-secret=/secrets/gcs/service-account.json
20+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
21+
- --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson
22+
- --promote
23+
- --report-credentials-file=/etc/report/credentials
24+
- --target=odh-mod-arch-model-registry-image
25+
- --variant=mod-arch-model-registry
26+
command:
27+
- ci-operator
28+
image: ci-operator:latest
29+
imagePullPolicy: Always
30+
name: ""
31+
resources:
32+
requests:
33+
cpu: 10m
34+
volumeMounts:
35+
- mountPath: /secrets/gcs
36+
name: gcs-credentials
37+
readOnly: true
38+
- mountPath: /etc/pull-secret
39+
name: pull-secret
40+
readOnly: true
41+
- mountPath: /etc/push-secret
42+
name: push-secret
43+
readOnly: true
44+
- mountPath: /etc/report
45+
name: result-aggregator
46+
readOnly: true
47+
serviceAccountName: ci-operator
48+
volumes:
49+
- name: gcs-credentials
50+
secret:
51+
secretName: gcs-upload
52+
- name: pull-secret
53+
secret:
54+
secretName: registry-pull-credentials
55+
- name: push-secret
56+
secret:
57+
secretName: registry-push-credentials-ci-central
58+
- name: result-aggregator
59+
secret:
60+
secretName: result-aggregator
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
presubmits:
2+
opendatahub-io/odh-dashboard:
3+
- agent: kubernetes
4+
always_run: false
5+
run_if_changed: ^packages/model-registry/.*
6+
branches:
7+
- ^main$
8+
- ^main-
9+
cluster: build09
10+
context: ci/prow/odh-mod-arch-model-registry-pr-image-mirror
11+
decorate: true
12+
decoration_config:
13+
skip_cloning: true
14+
labels:
15+
ci.openshift.io/generator: prowgen
16+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
17+
name: pull-ci-opendatahub-io-odh-dashboard-main__mod-arch-model-registry-odh-mod-arch-model-registry-pr-image-mirror
18+
rerun_command: /test odh-mod-arch-model-registry-pr-image-mirror
19+
spec:
20+
containers:
21+
- args:
22+
- --gcs-upload-secret=/secrets/gcs/service-account.json
23+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
24+
- --report-credentials-file=/etc/report/credentials
25+
- --secret-dir=/secrets/ci-pull-credentials
26+
- --target=odh-mod-arch-model-registry-pr-image-mirror
27+
- --variant=mod-arch-model-registry
28+
command:
29+
- ci-operator
30+
image: ci-operator:latest
31+
imagePullPolicy: Always
32+
name: ""
33+
resources:
34+
requests:
35+
cpu: 10m
36+
volumeMounts:
37+
- mountPath: /secrets/ci-pull-credentials
38+
name: ci-pull-credentials
39+
readOnly: true
40+
- mountPath: /secrets/gcs
41+
name: gcs-credentials
42+
readOnly: true
43+
- mountPath: /etc/pull-secret
44+
name: pull-secret
45+
readOnly: true
46+
- mountPath: /etc/report
47+
name: result-aggregator
48+
readOnly: true
49+
serviceAccountName: ci-operator
50+
volumes:
51+
- name: ci-pull-credentials
52+
secret:
53+
secretName: ci-pull-credentials
54+
- name: gcs-credentials
55+
secret:
56+
secretName: gcs-upload
57+
- name: pull-secret
58+
secret:
59+
secretName: registry-pull-credentials
60+
- name: result-aggregator
61+
secret:
62+
secretName: result-aggregator
63+
trigger: (?m)^/test( | .* )odh-mod-arch-model-registry-pr-image-mirror,?($|\s.*)

0 commit comments

Comments
 (0)