Skip to content
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 @@ -7,6 +7,10 @@ base_images:
name: cli-operator-sdk
namespace: ocp
tag: v1.39.2
operator-sdk:
name: "4.19"
namespace: origin
tag: operator-sdk
binary_build_commands: make go-build
build_root:
from_repository: true
Expand All @@ -15,6 +19,8 @@ images:
- dockerfile_path: Dockerfile.openshift
from: base-rhel9
to: must-gather-operator
- dockerfile_path: images/ci/Dockerfile.coverage
to: must-gather-operator-coverage
operator:
bundles:
- as: must-gather-operator-bundle
Expand Down Expand Up @@ -164,6 +170,132 @@ tests:
requests:
cpu: 100m
workflow: optional-operators-ci-operator-sdk-hypershift
- always_run: false
as: e2e-operator-coverage
cluster_claim:
architecture: amd64
cloud: aws
owner: openshift-ci
product: ocp
timeout: 2h0m0s
version: "4.22"
steps:
post:
- as: collect-coverage
best_effort: true
cli: latest
commands: hack/e2e-coverage.sh collect
credentials:
- mount_path: /var/run/secrets/must-gather-operator/ci-secrets
name: must-gather-operator-codecov-token
namespace: test-credentials
from: src
resources:
requests:
cpu: 100m
timeout: 15m0s
- chain: gather
test:
- as: install
cli: latest
commands: |
oc create namespace must-gather-operator
operator-sdk run bundle --timeout=10m --security-context-config=restricted --install-mode=AllNamespaces -n must-gather-operator "$OO_BUNDLE" --verbose
oc wait --for condition=Available -n must-gather-operator deployment must-gather-operator
Comment thread
coderabbitai[bot] marked this conversation as resolved.
dependencies:
- env: OO_BUNDLE
name: must-gather-operator-bundle
from: operator-sdk
resources:
requests:
cpu: 100m
- as: setup-coverage
cli: latest
commands: hack/e2e-coverage.sh setup
dependencies:
- env: COVERAGE_IMAGE
name: must-gather-operator-coverage
from: src
resources:
requests:
cpu: 100m
- as: test
cli: latest
commands: |
export CASE_MANAGEMENT_CREDS_CONFIG_DIR=/var/run/secrets/must-gather-operator/case-management-creds
make test-e2e
credentials:
- mount_path: /var/run/secrets/must-gather-operator/case-management-creds
name: case-management-creds
namespace: test-credentials
from: src
resources:
requests:
cpu: 100m
workflow: generic-claim
- as: publish-e2e-coverage
cluster_claim:
architecture: amd64
cloud: aws
owner: openshift-ci
product: ocp
timeout: 2h0m0s
version: "4.22"
postsubmit: true
steps:
post:
- as: collect-coverage
best_effort: true
cli: latest
commands: hack/e2e-coverage.sh collect
credentials:
- mount_path: /var/run/secrets/must-gather-operator/ci-secrets
name: must-gather-operator-codecov-token
namespace: test-credentials
from: src
resources:
requests:
cpu: 100m
timeout: 15m0s
- chain: gather
test:
- as: install
cli: latest
commands: |
oc create namespace must-gather-operator
operator-sdk run bundle --timeout=10m --security-context-config=restricted --install-mode=AllNamespaces -n must-gather-operator "$OO_BUNDLE" --verbose
oc wait --for condition=Available -n must-gather-operator deployment must-gather-operator
dependencies:
- env: OO_BUNDLE
name: must-gather-operator-bundle
from: operator-sdk
resources:
requests:
cpu: 100m
- as: setup-coverage
cli: latest
commands: hack/e2e-coverage.sh setup
dependencies:
- env: COVERAGE_IMAGE
name: must-gather-operator-coverage
from: src
resources:
requests:
cpu: 100m
- as: test
cli: latest
commands: |
export CASE_MANAGEMENT_CREDS_CONFIG_DIR=/var/run/secrets/must-gather-operator/case-management-creds
make test-e2e
credentials:
- mount_path: /var/run/secrets/must-gather-operator/case-management-creds
name: case-management-creds
namespace: test-credentials
from: src
resources:
requests:
cpu: 100m
workflow: generic-claim
- always_run: false
as: e2e-gcp-operator-rhcos10-fips
optional: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ periodics:
sparse_checkout_files:
- .ci-operator.yaml
- Dockerfile.openshift
- images/ci/Dockerfile.coverage
extra_refs:
- base_ref: master
org: openshift
repo: must-gather-operator
sparse_checkout_files:
- .ci-operator.yaml
- Dockerfile.openshift
- images/ci/Dockerfile.coverage
labels:
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ postsubmits:
sparse_checkout_files:
- .ci-operator.yaml
- Dockerfile.openshift
- images/ci/Dockerfile.coverage
labels:
ci-operator.openshift.io/is-promotion: "true"
ci.openshift.io/generator: prowgen
Expand Down Expand Up @@ -72,6 +73,7 @@ postsubmits:
sparse_checkout_files:
- .ci-operator.yaml
- Dockerfile.openshift
- images/ci/Dockerfile.coverage
labels:
ci.openshift.io/generator: prowgen
max_concurrency: 1
Expand Down Expand Up @@ -130,3 +132,89 @@ postsubmits:
- name: result-aggregator
secret:
secretName: result-aggregator
- agent: kubernetes
always_run: true
branches:
- ^master$
cluster: build03
decorate: true
decoration_config:
sparse_checkout_files:
- .ci-operator.yaml
- Dockerfile.openshift
- images/ci/Dockerfile.coverage
labels:
ci.openshift.io/generator: prowgen
max_concurrency: 1
name: branch-ci-openshift-must-gather-operator-master-publish-e2e-coverage
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
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --target=publish-e2e-coverage
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/hive-hive-credentials
name: hive-hive-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: hive-hive-credentials
secret:
secretName: hive-hive-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
Loading