Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support to testing operator on disconnected env #61224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
base_images:
cli:
name: "4.17"
namespace: ocp
tag: cli
tools:
name: "4.17"
namespace: ocp
tag: tools
upi-installer:
name: "4.17"
namespace: ocp
tag: upi-installer
build_root:
image_stream_tag:
name: release
namespace: openshift
tag: rhel-8-release-golang-1.21-openshift-4.16
images:
- context_dir: .
dockerfile_path: tests/Dockerfile
to: power-monitoring-operator-tests-runner
releases:
latest:
candidate:
product: ocp
stream: nightly
version: "4.17"
resources:
'*':
requests:
cpu: 100m
memory: 200Mi
tests:
- always_run: false
as: powermonitoring-tests-disconnected
cluster: build01
steps:
cluster_profile: gcp-qe
test:
- ref: openshift-power-monitoring-install-disconnected
workflow: cucushift-installer-rehearse-gcp-ipi-disconnected
zz_generated_metadata:
branch: v1alpha1
org: openshift-power-monitoring
repo: power-monitoring-operator
variant: ocp-4.17-disconnected
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,142 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^v1alpha1$
- ^v1alpha1-
cluster: build10
context: ci/prow/ocp-4.17-disconnected-images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/variant: ocp-4.17-disconnected
ci.openshift.io/generator: prowgen
job-release: "4.17"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-power-monitoring-power-monitoring-operator-v1alpha1-ocp-4.17-disconnected-images
rerun_command: /test ocp-4.17-disconnected-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]
- --variant=ocp-4.17-disconnected
command:
- ci-operator
image: 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( | .* )ocp-4.17-disconnected-images,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
- ^v1alpha1$
- ^v1alpha1-
cluster: build01
context: ci/prow/ocp-4.17-disconnected-powermonitoring-tests-disconnected
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: gcp
ci-operator.openshift.io/cloud-cluster-profile: gcp-qe
ci-operator.openshift.io/cluster: build01
ci-operator.openshift.io/variant: ocp-4.17-disconnected
ci.openshift.io/generator: prowgen
job-release: "4.17"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-power-monitoring-power-monitoring-operator-v1alpha1-ocp-4.17-disconnected-powermonitoring-tests-disconnected
rerun_command: /test ocp-4.17-disconnected-powermonitoring-tests-disconnected
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=powermonitoring-tests-disconnected
- --variant=ocp-4.17-disconnected
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
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( | .* )(ocp-4.17-disconnected-powermonitoring-tests-disconnected|remaining-required),?($|\s.*)
- agent: kubernetes
always_run: false
branches:
Expand Down
Loading