Skip to content

Commit

Permalink
Kuttl coverage for CronJob
Browse files Browse the repository at this point in the history
  • Loading branch information
gibizer committed Feb 25, 2024
1 parent 644d7d6 commit 2e86c5a
Showing 1 changed file with 129 additions and 0 deletions.
129 changes: 129 additions & 0 deletions test/kuttl/test-suites/default/scale-tests/01-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -509,3 +509,132 @@ status:
readyReplicas: 1
replicas: 1
---
apiVersion: batch/v1
kind: CronJob
metadata:
labels:
service: nova-conductor
name: nova-cell0-conductor-db-purge
namespace: nova-kuttl-default
spec:
concurrencyPolicy: Forbid
failedJobsHistoryLimit: 1
jobTemplate:
spec:
completions: 1
parallelism: 1
template:
spec:
containers:
- args:
- -c
- /usr/local/bin/kolla_start
command:
- /bin/bash
env:
- name: ARCHIVE_AGE
value: "30"
- name: KOLLA_BOOTSTRAP
value: "true"
- name: KOLLA_CONFIG_STRATEGY
value: COPY_ALWAYS
- name: PURGE_AGE
value: "90"
image: quay.io/podified-antelope-centos9/openstack-nova-conductor:current-podified
name: nova-manage
securityContext:
runAsUser: 42436
volumeMounts:
- mountPath: /var/lib/openstack/config
name: config-data
- mountPath: /var/lib/openstack/bin
name: scripts
- mountPath: /var/lib/kolla/config_files/config.json
name: config-data
subPath: nova-conductor-dbpurge-config.json
- mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
name: combined-ca-bundle
readOnly: true
subPath: tls-ca-bundle.pem
restartPolicy: OnFailure
serviceAccount: nova-nova
serviceAccountName: nova-nova
volumes:
- name: config-data
secret:
secretName: nova-cell0-conductor-config-data
- name: scripts
secret:
secretName: nova-cell0-conductor-scripts
- name: combined-ca-bundle
secret:
secretName: combined-ca-bundle
schedule: 0 0 * * *
successfulJobsHistoryLimit: 3
suspend: false
status: {}
---
apiVersion: batch/v1
kind: CronJob
metadata:
labels:
service: nova-conductor
name: nova-cell1-conductor-db-purge
namespace: nova-kuttl-default
spec:
concurrencyPolicy: Forbid
failedJobsHistoryLimit: 1
jobTemplate:
spec:
completions: 1
parallelism: 1
template:
spec:
containers:
- args:
- -c
- /usr/local/bin/kolla_start
command:
- /bin/bash
env:
- name: ARCHIVE_AGE
value: "30"
- name: KOLLA_BOOTSTRAP
value: "true"
- name: KOLLA_CONFIG_STRATEGY
value: COPY_ALWAYS
- name: PURGE_AGE
value: "90"
image: quay.io/podified-antelope-centos9/openstack-nova-conductor:current-podified
name: nova-manage
securityContext:
runAsUser: 42436
volumeMounts:
- mountPath: /var/lib/openstack/config
name: config-data
- mountPath: /var/lib/openstack/bin
name: scripts
- mountPath: /var/lib/kolla/config_files/config.json
name: config-data
subPath: nova-conductor-dbpurge-config.json
- mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
name: combined-ca-bundle
readOnly: true
subPath: tls-ca-bundle.pem
restartPolicy: OnFailure
serviceAccount: nova-nova
serviceAccountName: nova-nova
volumes:
- name: config-data
secret:
secretName: nova-cell1-conductor-config-data
- name: scripts
secret:
secretName: nova-cell1-conductor-scripts
- name: combined-ca-bundle
secret:
secretName: combined-ca-bundle
schedule: 0 0 * * *
successfulJobsHistoryLimit: 3
suspend: false
status: {}

0 comments on commit 2e86c5a

Please sign in to comment.