diff --git a/ci-operator/config/redhat-ai-dev/rhess/OWNERS b/ci-operator/config/redhat-ai-dev/rhess/OWNERS new file mode 100644 index 0000000000000..a78ddd574881e --- /dev/null +++ b/ci-operator/config/redhat-ai-dev/rhess/OWNERS @@ -0,0 +1,5 @@ +approvers: +- johnmcollier +options: {} +reviewers: +- johnmcollier diff --git a/ci-operator/config/redhat-ai-dev/rhess/redhat-ai-dev-rhess-main.yaml b/ci-operator/config/redhat-ai-dev/rhess/redhat-ai-dev-rhess-main.yaml new file mode 100644 index 0000000000000..ea47a3f93c0c7 --- /dev/null +++ b/ci-operator/config/redhat-ai-dev/rhess/redhat-ai-dev-rhess-main.yaml @@ -0,0 +1,59 @@ +base_images: + cli: + name: "4.20" + namespace: ocp + tag: cli +build_root: + image_stream_tag: + name: release + namespace: openshift + tag: rhel-9-release-golang-1.24-openshift-4.20 +images: + items: + - dockerfile_path: Dockerfile + to: rhess +releases: + initial: + integration: + name: "4.20" + namespace: ocp + latest: + integration: + include_built_images: true + name: "4.20" + namespace: ocp +resources: + '*': + limits: + memory: 4Gi + requests: + cpu: 100m + memory: 200Mi +tests: +- as: rhess-e2e + optional: true + steps: + cluster_profile: aws-devfile + env: + BASE_DOMAIN: devfile-ci.com + test: + - as: rhess-e2e-steps + commands: | + export PATH=$PATH:/tmp/bin + mkdir /tmp/bin + curl -L --fail https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/candidate-4.20/openshift-client-linux.tar.gz | tar xvzf - -C /tmp/bin/ oc + chmod ug+x /tmp/bin/oc + .ci/openshift_e2e.sh + dependencies: + - env: RHESS_IMAGE + name: rhess + from: src + resources: + requests: + cpu: 100m + memory: 200Mi + workflow: ipi-aws +zz_generated_metadata: + branch: main + org: redhat-ai-dev + repo: rhess diff --git a/ci-operator/jobs/redhat-ai-dev/rhess/OWNERS b/ci-operator/jobs/redhat-ai-dev/rhess/OWNERS new file mode 100644 index 0000000000000..a78ddd574881e --- /dev/null +++ b/ci-operator/jobs/redhat-ai-dev/rhess/OWNERS @@ -0,0 +1,5 @@ +approvers: +- johnmcollier +options: {} +reviewers: +- johnmcollier diff --git a/ci-operator/jobs/redhat-ai-dev/rhess/redhat-ai-dev-rhess-main-presubmits.yaml b/ci-operator/jobs/redhat-ai-dev/rhess/redhat-ai-dev-rhess-main-presubmits.yaml new file mode 100644 index 0000000000000..e6f10bf50041e --- /dev/null +++ b/ci-operator/jobs/redhat-ai-dev/rhess/redhat-ai-dev-rhess-main-presubmits.yaml @@ -0,0 +1,142 @@ +presubmits: + redhat-ai-dev/rhess: + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build05 + context: ci/prow/images + decorate: true + decoration_config: + sparse_checkout_files: + - Dockerfile + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-redhat-ai-dev-rhess-main-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: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - 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: + - ^main$ + - ^main- + cluster: build09 + context: ci/prow/rhess-e2e + decorate: true + decoration_config: + sparse_checkout_files: + - Dockerfile + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: aws-devfile + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-redhat-ai-dev-rhess-main-rhess-e2e + optional: true + rerun_command: /test rhess-e2e + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=rhess-e2e + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )rhess-e2e,?($|\s.*) diff --git a/core-services/prow/02_config/redhat-ai-dev/rhess/_pluginconfig.yaml b/core-services/prow/02_config/redhat-ai-dev/rhess/_pluginconfig.yaml new file mode 100644 index 0000000000000..ff1f80db1e9b0 --- /dev/null +++ b/core-services/prow/02_config/redhat-ai-dev/rhess/_pluginconfig.yaml @@ -0,0 +1,31 @@ +approve: +- commandHelpLink: https://go.k8s.io/bot-commands + repos: + - redhat-ai-dev/rhess + require_self_approval: false +lgtm: +- repos: + - redhat-ai-dev/rhess + review_acts_as_lgtm: true +plugins: + redhat-ai-dev/rhess: + plugins: + - approve + - assign + - blunderbuss + - help + - hold + - label + - lgtm + - lifecycle + - override + - retitle + - skip + - trigger + - verify-owners + - wip +triggers: +- repos: + - redhat-ai-dev/rhess + trusted_apps: + - openshift-merge-bot