From 6a194f61e410af535dc7646c566111588e75ccaf Mon Sep 17 00:00:00 2001 From: Lucas Fernandez Date: Thu, 4 Sep 2025 21:17:08 +0200 Subject: [PATCH] feat: Update image target for odh-dashboard and add mod-arch-model-registry configuration --- ...ashboard-mod-arch-model-registry-main.yaml | 37 +++++++++++ ...hub-io-odh-dashboard-main-postsubmits.yaml | 2 +- ...ahub-io-odh-dashboard-main-presubmits.yaml | 2 +- ...-arch-model-registry-main-postsubmits.yaml | 60 ++++++++++++++++++ ...d-arch-model-registry-main-presubmits.yaml | 63 +++++++++++++++++++ 5 files changed, 162 insertions(+), 2 deletions(-) create mode 100644 ci-operator/config/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main.yaml create mode 100644 ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main-postsubmits.yaml create mode 100644 ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main-presubmits.yaml diff --git a/ci-operator/config/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main.yaml b/ci-operator/config/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main.yaml new file mode 100644 index 0000000000000..28b6e78714d84 --- /dev/null +++ b/ci-operator/config/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main.yaml @@ -0,0 +1,37 @@ +build_root: + image_stream_tag: + name: release + namespace: openshift + tag: rhel-8-release-golang-1.17-openshift-4.10 +images: +- context_dir: . + dockerfile_path: ./packages/model-registry/Dockerfile.workspace + to: odh-mod-arch-model-registry-image +promotion: + to: + - namespace: opendatahub-io + tag: main +releases: + latest: + release: + architecture: amd64 + channel: fast + version: "4.10" +resources: + '*': + requests: + cpu: 200m + memory: 400Mi +tests: +- as: odh-mod-arch-model-registry-pr-image-mirror + steps: + dependencies: + SOURCE_IMAGE_REF: odh-mod-arch-model-registry-image + env: + IMAGE_REPO: odh-mod-arch-modular-architecture + workflow: opendatahub-io-ci-image-mirror +zz_generated_metadata: + branch: main + org: opendatahub-io + repo: odh-dashboard + variant: mod-arch-model-registry diff --git a/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-postsubmits.yaml b/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-postsubmits.yaml index 6c3798b5bc8dc..9422219f3d42b 100644 --- a/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-postsubmits.yaml +++ b/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-postsubmits.yaml @@ -21,7 +21,7 @@ postsubmits: - --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson - --promote - --report-credentials-file=/etc/report/credentials - - --target=[images] + - --target=odh-dashboard-image command: - ci-operator image: ci-operator:latest diff --git a/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-presubmits.yaml b/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-presubmits.yaml index 13de21bc044c5..06a56e402716f 100644 --- a/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-presubmits.yaml +++ b/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-main-presubmits.yaml @@ -21,7 +21,7 @@ presubmits: - --gcs-upload-secret=/secrets/gcs/service-account.json - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson - --report-credentials-file=/etc/report/credentials - - --target=[images] + - --target=odh-dashboard-image command: - ci-operator image: ci-operator:latest diff --git a/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main-postsubmits.yaml b/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main-postsubmits.yaml new file mode 100644 index 0000000000000..70e1bb2845d26 --- /dev/null +++ b/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main-postsubmits.yaml @@ -0,0 +1,60 @@ +postsubmits: + opendatahub-io/odh-dashboard: + - agent: kubernetes + always_run: true + branches: + - ^main$ + cluster: build07 + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/is-promotion: "true" + ci.openshift.io/generator: prowgen + max_concurrency: 1 + name: branch-ci-opendatahub-io-odh-dashboard-main__mod-arch-model-registry-odh-mod-arch-model-registry-image + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --image-mirror-push-secret=/etc/push-secret/.dockerconfigjson + - --promote + - --report-credentials-file=/etc/report/credentials + - --target=odh-mod-arch-model-registry-image + - --variant=mod-arch-model-registry + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/push-secret + name: push-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: gcs-credentials + secret: + secretName: gcs-upload + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: push-secret + secret: + secretName: registry-push-credentials-ci-central + - name: result-aggregator + secret: + secretName: result-aggregator diff --git a/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main-presubmits.yaml b/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main-presubmits.yaml new file mode 100644 index 0000000000000..868cbc021fe66 --- /dev/null +++ b/ci-operator/jobs/opendatahub-io/odh-dashboard/opendatahub-io-odh-dashboard-mod-arch-model-registry-main-presubmits.yaml @@ -0,0 +1,63 @@ +presubmits: + opendatahub-io/odh-dashboard: + - agent: kubernetes + always_run: false + run_if_changed: ^packages/model-registry/.* + branches: + - ^main$ + - ^main- + cluster: build09 + context: ci/prow/odh-mod-arch-model-registry-pr-image-mirror + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-opendatahub-io-odh-dashboard-main__mod-arch-model-registry-odh-mod-arch-model-registry-pr-image-mirror + rerun_command: /test odh-mod-arch-model-registry-pr-image-mirror + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=odh-mod-arch-model-registry-pr-image-mirror + - --variant=mod-arch-model-registry + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: gcs-credentials + secret: + secretName: gcs-upload + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )odh-mod-arch-model-registry-pr-image-mirror,?($|\s.*)