Skip to content

Commit

Permalink
Add prow/ci/functional job to openstack-k8s-operators/watcher-operator (
Browse files Browse the repository at this point in the history
openshift#58986)

This patch is addint the functional tests job to the watcher-operator.

Not that the initial structure for functional tests is being added in
[1].

[1] openstack-k8s-operators/watcher-operator#10
  • Loading branch information
amoralej authored and mpkredhat committed Nov 26, 2024
1 parent 8d7df60 commit de3ee51
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ tests:
pre-commit run -a --show-diff-on-failure
container:
from: openstack-operator-ci-pre-commit
- as: functional
commands: |
mkdir -p ../operator && cp -r . ../operator
cd ../operator
export GOFLAGS=
make test GINKGO_ARGS='--no-color'
container:
from: src
zz_generated_metadata:
branch: main
org: openstack-k8s-operators
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
presubmits:
openstack-k8s-operators/watcher-operator:
- agent: kubernetes
always_run: true
branches:
- ^main$
- ^main-
cluster: build10
context: ci/prow/functional
decorate: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openstack-k8s-operators-watcher-operator-main-functional
rerun_command: /test functional
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=functional
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( | .* )functional,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down

0 comments on commit de3ee51

Please sign in to comment.