apiVersion: batch/v1
kind: CronJob
metadata:
  creationTimestamp: "2026-04-04T02:24:57Z"
  generation: 1
  labels:
    service: watcher
  name: watcher-db-purge
  namespace: openstack
  ownerReferences:
  - apiVersion: watcher.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: Watcher
    name: watcher
    uid: b127f205-238c-4931-85d4-61807b123418
  resourceVersion: "48344"
  uid: 5703cc60-d25d-49c9-a184-493f35c3a073
spec:
  concurrencyPolicy: Forbid
  failedJobsHistoryLimit: 1
  jobTemplate:
    metadata:
      creationTimestamp: null
      labels:
        service: watcher
    spec:
      completions: 1
      parallelism: 1
      template:
        metadata:
          creationTimestamp: null
        spec:
          containers:
          - args:
            - -c
            - /usr/local/bin/kolla_start
            command:
            - /bin/bash
            env:
            - name: KOLLA_BOOTSTRAP
              value: "true"
            - name: KOLLA_CONFIG_STRATEGY
              value: COPY_ALWAYS
            - name: PURGE_AGE
              value: "90"
            image: 38.102.83.110:5001/podified-master-centos10/openstack-watcher-api:watcher_latest
            imagePullPolicy: IfNotPresent
            name: watcher-db-manage
            resources: {}
            securityContext:
              runAsUser: 42451
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
            volumeMounts:
            - mountPath: /var/lib/config-data/default
              name: config-data
              readOnly: true
            - mountPath: /etc/my.cnf
              name: config-data
              readOnly: true
              subPath: my.cnf
            - mountPath: /var/lib/kolla/config_files/config.json
              name: config-data
              readOnly: true
              subPath: watcher-dbpurge-config.json
            - mountPath: /var/lib/openstack/bin
              name: scripts-volume
            - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
              name: combined-ca-bundle
              readOnly: true
              subPath: tls-ca-bundle.pem
          dnsPolicy: ClusterFirst
          restartPolicy: OnFailure
          schedulerName: default-scheduler
          securityContext: {}
          serviceAccount: watcher-watcher
          serviceAccountName: watcher-watcher
          terminationGracePeriodSeconds: 30
          volumes:
          - name: config-data
            secret:
              defaultMode: 420
              secretName: watcher-config-data
          - name: config-data-custom
            secret:
              defaultMode: 420
              secretName: watcher-config-data
          - name: scripts-volume
            secret:
              defaultMode: 480
              secretName: watcher-scripts
          - name: combined-ca-bundle
            secret:
              defaultMode: 292
              secretName: combined-ca-bundle
  schedule: 0 1 * * *
  successfulJobsHistoryLimit: 3
  suspend: false
status: {}
