diff --git a/ci-operator/config/openshift/cincinnati-operator/openshift-cincinnati-operator-bundle-dockerfile.yaml b/ci-operator/config/openshift/cincinnati-operator/openshift-cincinnati-operator-bundle-dockerfile.yaml new file mode 100644 index 0000000000000..2d484a037e449 --- /dev/null +++ b/ci-operator/config/openshift/cincinnati-operator/openshift-cincinnati-operator-bundle-dockerfile.yaml @@ -0,0 +1,79 @@ +base_images: + base: + name: "4.13" + namespace: ocp + tag: base + operator-sdk: + name: "4.13" + namespace: origin + tag: operator-sdk +build_root: + image_stream_tag: + name: release + namespace: openshift + tag: golang-1.18 +images: +- dockerfile_path: build/Dockerfile + from: base + to: cincinnati-operator +- dockerfile_path: dev/Dockerfile + from: base + to: cincinnati-graph-data-container +operator: + bundles: + - as: cincinnati-operator-bundle + dockerfile_path: bundle.Dockerfile + skip_building_index: true + substitutions: + - pullspec: controller:latest + with: pipeline:cincinnati-operator +releases: + latest: + release: + channel: candidate + version: "4.14" + thirteen: + release: + channel: candidate + version: "4.13" + twelve: + release: + channel: candidate + version: "4.12" +resources: + '*': + limits: + memory: 4Gi + requests: + cpu: 100m + memory: 200Mi +tests: +- as: install-bundle + cluster_claim: + architecture: amd64 + cloud: aws + owner: openshift-ci + product: ocp + timeout: 1h0m0s + version: "4.13" + steps: + test: + - as: install + cli: latest + commands: | + oc create namespace install-osus-here + operator-sdk run bundle -n install-osus-here "$OO_BUNDLE" + oc wait --for condition=Available -n install-osus-here deployment updateservice-operator + dependencies: + - env: OO_BUNDLE + name: cincinnati-operator-bundle + from: operator-sdk + resources: + requests: + cpu: 500m + memory: 1000Mi + workflow: generic-claim +zz_generated_metadata: + branch: bundle-dockerfile + org: openshift + repo: cincinnati-operator diff --git a/ci-operator/jobs/openshift/cincinnati-operator/openshift-cincinnati-operator-bundle-dockerfile-presubmits.yaml b/ci-operator/jobs/openshift/cincinnati-operator/openshift-cincinnati-operator-bundle-dockerfile-presubmits.yaml new file mode 100644 index 0000000000000..47b41216281a8 --- /dev/null +++ b/ci-operator/jobs/openshift/cincinnati-operator/openshift-cincinnati-operator-bundle-dockerfile-presubmits.yaml @@ -0,0 +1,163 @@ +presubmits: + openshift/cincinnati-operator: + - agent: kubernetes + always_run: true + branches: + - ^bundle-dockerfile$ + - ^bundle-dockerfile- + cluster: build01 + context: ci/prow/ci-bundle-cincinnati-operator-bundle + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-cincinnati-operator-bundle-dockerfile-ci-bundle-cincinnati-operator-bundle + rerun_command: /test ci-bundle-cincinnati-operator-bundle + 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 + - --target=cincinnati-operator-bundle + 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/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )ci-bundle-cincinnati-operator-bundle,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^bundle-dockerfile$ + - ^bundle-dockerfile- + cluster: build01 + context: ci/prow/images + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-cincinnati-operator-bundle-dockerfile-images + rerun_command: /test images + 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 + - --target=[images] + 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/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )images,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^bundle-dockerfile$ + - ^bundle-dockerfile- + cluster: build01 + context: ci/prow/install-bundle + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-cincinnati-operator-bundle-dockerfile-install-bundle + rerun_command: /test install-bundle + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --hive-kubeconfig=/secrets/hive-hive-credentials/kubeconfig + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=install-bundle + 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: /secrets/hive-hive-credentials + name: hive-hive-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: hive-hive-credentials + secret: + secretName: hive-hive-credentials + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )install-bundle,?($|\s.*)