apiVersion: batch/v1
kind: CronJob
metadata:
  annotations:
    meta.helm.sh/release-name: senlin
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-03-04T01:54:35Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
  name: senlin-engine-cleaner
  namespace: openstack
  resourceVersion: "40040"
  uid: ba5f4b76-76d6-4004-9457-49d2c0dde4a6
spec:
  concurrencyPolicy: Forbid
  failedJobsHistoryLimit: 1
  jobTemplate:
    metadata:
      creationTimestamp: null
      labels:
        application: senlin
        component: engine-cleaner
        release_group: senlin
    spec:
      template:
        metadata:
          creationTimestamp: null
          labels:
            application: senlin
            component: engine-cleaner
            release_group: senlin
        spec:
          containers:
          - command:
            - /tmp/senlin-engine-cleaner.sh
            image: harbor.atmosphere.dev/ghcr.io/vexxhost/senlin:zed@sha256:d4a77d5076d94e09f1556e7ea3214ffb2077d2aa26e0af374e45601177168f78
            imagePullPolicy: IfNotPresent
            name: senlin-engine-cleaner
            resources: {}
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
            volumeMounts:
            - mountPath: /tmp
              name: pod-tmp
            - mountPath: /tmp/senlin-engine-cleaner.sh
              name: senlin-bin
              readOnly: true
              subPath: senlin-engine-cleaner.sh
            - mountPath: /etc/senlin
              name: etcsenlin
            - mountPath: /etc/senlin/senlin.conf
              name: senlin-etc
              readOnly: true
              subPath: senlin.conf
          dnsPolicy: ClusterFirst
          initContainers:
          - command:
            - kubernetes-entrypoint
            env:
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.name
            - name: NAMESPACE
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.namespace
            - name: INTERFACE_NAME
              value: eth0
            - name: PATH
              value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
            - name: DEPENDENCY_SERVICE
              value: openstack:percona-xtradb-haproxy,openstack:rabbitmq-senlin,openstack:keystone-api
            - name: DEPENDENCY_JOBS
              value: senlin-db-sync
            - name: DEPENDENCY_DAEMONSET
            - name: DEPENDENCY_CONTAINER
            - name: DEPENDENCY_POD_JSON
            - name: DEPENDENCY_CUSTOM_RESOURCE
            image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
            imagePullPolicy: IfNotPresent
            name: init
            resources: {}
            securityContext:
              allowPrivilegeEscalation: false
              readOnlyRootFilesystem: true
              runAsUser: 65534
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
          nodeSelector:
            openstack-control-plane: enabled
          restartPolicy: OnFailure
          schedulerName: default-scheduler
          securityContext: {}
          serviceAccount: senlin-engine-cleaner
          serviceAccountName: senlin-engine-cleaner
          terminationGracePeriodSeconds: 30
          volumes:
          - emptyDir: {}
            name: pod-tmp
          - emptyDir: {}
            name: etcsenlin
          - name: senlin-etc
            secret:
              defaultMode: 292
              secretName: senlin-etc
          - configMap:
              defaultMode: 365
              name: senlin-bin
            name: senlin-bin
  schedule: '*/5 * * * *'
  successfulJobsHistoryLimit: 3
  suspend: false
status:
  lastScheduleTime: "2026-03-04T02:35:00Z"
  lastSuccessfulTime: "2026-03-04T02:35:10Z"
