apiVersion: batch/v1
kind: CronJob
metadata:
  annotations:
    meta.helm.sh/release-name: heat
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-05-29T02:49:03Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
  name: heat-engine-cleaner
  namespace: openstack
  resourceVersion: "39350"
  uid: 516f7f05-61df-4641-9f62-f98fae240bf2
spec:
  concurrencyPolicy: Forbid
  failedJobsHistoryLimit: 1
  jobTemplate:
    metadata:
      creationTimestamp: null
      labels:
        application: heat
        component: engine-cleaner
        release_group: heat
    spec:
      template:
        metadata:
          annotations:
            configmap-bin-hash: 628162dda4db1a76da1eabedff6e45eb79db18f62852963456b9b0967f146607
            configmap-etc-hash: 4ee822a92dcc8582f9ae2e008dd6fe6f634e2f178a05528accec9bf3f13f0e36
            openstackhelm.openstack.org/release_uuid: ""
          creationTimestamp: null
          labels:
            application: heat
            component: engine-cleaner
            release_group: heat
        spec:
          containers:
          - command:
            - /tmp/heat-engine-cleaner.sh
            image: harbor.atmosphere.dev/ghcr.io/vexxhost/heat:2025.2@sha256:6b60d5a1384d0e9235ea67f64f0235dd905c945cc074cd53cadcab8e55eb24e0
            imagePullPolicy: IfNotPresent
            name: heat-engine-cleaner
            resources: {}
            securityContext:
              allowPrivilegeEscalation: false
              readOnlyRootFilesystem: true
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
            volumeMounts:
            - mountPath: /tmp
              name: pod-tmp
            - mountPath: /tmp/heat-engine-cleaner.sh
              name: heat-bin
              readOnly: true
              subPath: heat-engine-cleaner.sh
            - mountPath: /etc/heat
              name: etcheat
            - mountPath: /etc/heat/heat.conf
              name: heat-etc
              readOnly: true
              subPath: heat.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-heat,openstack:keystone-api
            - name: DEPENDENCY_JOBS
              value: heat-db-sync,heat-ks-user,heat-domain-ks-user,heat-ks-endpoints
            - 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:
            runAsUser: 42424
          serviceAccount: heat-engine-cleaner
          serviceAccountName: heat-engine-cleaner
          terminationGracePeriodSeconds: 30
          volumes:
          - emptyDir: {}
            name: pod-tmp
          - emptyDir: {}
            name: etcheat
          - name: heat-etc
            secret:
              defaultMode: 292
              secretName: heat-etc
          - configMap:
              defaultMode: 365
              name: heat-bin
            name: heat-bin
  schedule: '*/5 * * * *'
  startingDeadlineSeconds: 600
  successfulJobsHistoryLimit: 3
  suspend: false
status:
  active:
  - apiVersion: batch/v1
    kind: Job
    name: heat-engine-cleaner-29667090
    namespace: openstack
    resourceVersion: "39349"
    uid: 23add169-2b1d-402c-81ba-d058e34a765f
  lastScheduleTime: "2026-05-29T03:30:00Z"
  lastSuccessfulTime: "2026-05-29T03:25:12Z"
