apiVersion: batch/v1
kind: CronJob
metadata:
  annotations:
    meta.helm.sh/release-name: cinder
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-02-28T21:54:25Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: cinder
    component: volume-usage-audit
    release_group: cinder
  name: cinder-volume-usage-audit
  namespace: openstack
  resourceVersion: "14755"
  uid: e79c9ec1-322a-46e8-89df-1dfc7de7c96c
spec:
  concurrencyPolicy: Forbid
  failedJobsHistoryLimit: 1
  jobTemplate:
    metadata:
      creationTimestamp: null
      labels:
        application: cinder
        component: volume-usage-audit
        release_group: cinder
    spec:
      template:
        metadata:
          creationTimestamp: null
          labels:
            application: cinder
            component: volume-usage-audit
            release_group: cinder
        spec:
          containers:
          - command:
            - /tmp/volume-usage-audit.sh
            image: harbor.atmosphere.dev/ghcr.io/vexxhost/cinder:main@sha256:97dabb91fe4115ea48e608fec6094a6d8d47b1b3a37650ea5e01322f759cf651
            imagePullPolicy: IfNotPresent
            name: cinder-volume-usage-audit
            resources: {}
            securityContext:
              allowPrivilegeEscalation: false
              readOnlyRootFilesystem: true
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
            volumeMounts:
            - mountPath: /tmp
              name: pod-tmp
            - mountPath: /etc/cinder
              name: etccinder
            - mountPath: /etc/cinder/cinder.conf
              name: cinder-etc
              readOnly: true
              subPath: cinder.conf
            - mountPath: /tmp/volume-usage-audit.sh
              name: cinder-bin
              readOnly: true
              subPath: volume-usage-audit.sh
          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:keystone-api,openstack:cinder-api
            - name: DEPENDENCY_JOBS
              value: cinder-db-sync,cinder-ks-user,cinder-ks-endpoints,cinder-rabbit-init,cinder-storage-init
            - 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: cinder-volume-usage-audit
          serviceAccountName: cinder-volume-usage-audit
          terminationGracePeriodSeconds: 30
          volumes:
          - emptyDir: {}
            name: pod-tmp
          - emptyDir: {}
            name: etccinder
          - name: cinder-etc
            secret:
              defaultMode: 292
              secretName: cinder-etc
          - configMap:
              defaultMode: 365
              name: cinder-bin
            name: cinder-bin
  schedule: 5 * * * *
  startingDeadlineSeconds: 600
  successfulJobsHistoryLimit: 3
  suspend: false
status:
  lastScheduleTime: "2026-02-28T22:05:00Z"
  lastSuccessfulTime: "2026-02-28T22:05:10Z"
