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

Update operator config to use new tests #37238

Merged
Merged
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
Expand Up @@ -11,17 +11,17 @@ build_root:
image_stream_tag:
name: release
namespace: openshift
tag: golang-1.14
tag: golang-1.18
images:
- context_dir: .
dockerfile_path: build/Dockerfile.multistage
dockerfile_path: Dockerfile
from: os
to: opendatahub-operator
operator:
bundles:
- dockerfile_path: Dockerfile.bundle
- dockerfile_path: bundle.Dockerfile
substitutions:
- pullspec: quay.io/opendatahub/opendatahub-operator:v0.9.0
- pullspec: quay.io/opendatahub/opendatahub-operator:dev-0.0.1
with: pipeline:opendatahub-operator
releases:
initial:
Expand All @@ -39,51 +39,64 @@ resources:
cpu: 200m
memory: 200Mi
tests:
- as: unit-tests
commands: |
go get -u github.com/jstemmer/go-junit-report
go mod vendor
make test-junit
container:
from: src
- as: opendatahub-operator-nightly
commands: |
go get -u github.com/jstemmer/go-junit-report
go mod vendor
make test-junit
container:
from: src
cron: 16 17 10,24 * *
- as: operator-e2e
- as: opendatahub-operator-pr-image-mirror
steps:
dependencies:
SOURCE_IMAGE_REF: opendatahub-operator
env:
IMAGE_REPO: opendatahub-operator
workflow: opendatahub-io-ci-image-mirror
- as: opendatahub-operator-image-mirror
postsubmit: true
steps:
dependencies:
SOURCE_IMAGE_REF: opendatahub-operator
env:
IMAGE_REPO: opendatahub-operator
RELEASE_VERSION: master
workflow: opendatahub-io-ci-image-mirror
- as: opendatahub-operator-image-mirror-latest
cron: 0 2 * * *
steps:
dependencies:
SOURCE_IMAGE_REF: opendatahub-operator
env:
IMAGE_REPO: opendatahub-operator
IMAGE_TAG: latest
workflow: opendatahub-io-ci-image-mirror
- as: opendatahub-operator-e2e
steps:
cluster_profile: gcp
env:
COMPUTE_NODE_TYPE: n2-standard-8
OO_CHANNEL: rolling
OO_INSTALL_NAMESPACE: opendatahub-operator
OO_INSTALL_NAMESPACE: openshift-operators
OO_PACKAGE: opendatahub-operator
OO_TARGET_NAMESPACES: '!all'
test:
- as: e2e
commands: SKIP_OPERATOR_INSTALL=true $HOME/peak/installandtest.sh
from: odh-tests
cli: latest
commands: |
unset GOFLAGS
make e2e-test -e OPERATOR_NAMESPACE=openshift-operators
from: src
resources:
requests:
cpu: 2000m
memory: 3Gi
workflow: optional-operators-ci-gcp
- as: operator-e2e-nightly
cron: 52 15 5,19 * *
- as: opendatahub-manifests-e2e
optional: true
steps:
cluster_profile: gcp
env:
COMPUTE_NODE_TYPE: n2-standard-8
OO_CHANNEL: rolling
OO_INSTALL_NAMESPACE: opendatahub-operator
OO_INSTALL_NAMESPACE: openshift-operators
OO_PACKAGE: opendatahub-operator
OO_TARGET_NAMESPACES: '!all'
test:
- as: e2e
- as: manifests-e2e
commands: SKIP_OPERATOR_INSTALL=true $HOME/peak/installandtest.sh
from: odh-tests
resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
periodics:
- agent: kubernetes
cluster: build02
cron: 16 17 10,24 * *
cron: 0 2 * * *
decorate: true
decoration_config:
skip_cloning: true
Expand All @@ -12,66 +12,15 @@ periodics:
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: periodic-ci-opendatahub-io-opendatahub-operator-master-opendatahub-operator-nightly
name: periodic-ci-opendatahub-io-opendatahub-operator-master-opendatahub-operator-image-mirror-latest
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=opendatahub-operator-nightly
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
- agent: kubernetes
cluster: build04
cron: 52 15 5,19 * *
decorate: true
decoration_config:
skip_cloning: true
extra_refs:
- base_ref: master
org: opendatahub-io
repo: opendatahub-operator
labels:
ci-operator.openshift.io/cloud: gcp
ci-operator.openshift.io/cloud-cluster-profile: gcp
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: periodic-ci-opendatahub-io-opendatahub-operator-master-operator-e2e-nightly
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
- --secret-dir=/usr/local/operator-e2e-nightly-cluster-profile
- --target=operator-e2e-nightly
- --target=opendatahub-operator-image-mirror-latest
command:
- ci-operator
image: ci-operator:latest
Expand All @@ -81,14 +30,9 @@ periodics:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /usr/local/operator-e2e-nightly-cluster-profile
name: cluster-profile
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
Expand All @@ -100,22 +44,9 @@ periodics:
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: cluster-profile
projected:
sources:
- secret:
name: cluster-secrets-gcp
- configMap:
name: cluster-profile-gcp
- name: pull-secret
secret:
secretName: registry-pull-credentials
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
postsubmits:
opendatahub-io/opendatahub-operator:
- agent: kubernetes
always_run: true
branches:
- ^master$
cluster: build01
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
max_concurrency: 1
name: branch-ci-opendatahub-io-opendatahub-operator-master-opendatahub-operator-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=opendatahub-operator-image-mirror
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: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
Loading