apiVersion: batch/v1
kind: CronJob
metadata:
  annotations:
    meta.helm.sh/release-name: nova
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-23T00:46:10Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
  name: nova-cell-setup
  namespace: openstack
  resourceVersion: "21163"
  uid: 627ba1f7-0ec0-4c08-ab15-592ba30765aa
spec:
  concurrencyPolicy: Forbid
  failedJobsHistoryLimit: 1
  jobTemplate:
    metadata:
      creationTimestamp: null
      labels:
        application: nova
        component: cell-setup
        release_group: nova
    spec:
      template:
        metadata:
          creationTimestamp: null
          labels:
            application: nova
            component: cell-setup
            release_group: nova
        spec:
          containers:
          - command:
            - /tmp/cell-setup.sh
            image: harbor.atmosphere.dev/ghcr.io/vexxhost/nova:2024.1@sha256:32c858b987cfc00b601d48a2c95a0ab455f7e2eb5554cd47ed2d3cdb1e183693
            imagePullPolicy: IfNotPresent
            name: nova-cell-setup
            resources: {}
            securityContext:
              allowPrivilegeEscalation: false
              readOnlyRootFilesystem: true
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
            volumeMounts:
            - mountPath: /tmp
              name: pod-tmp
            - mountPath: /tmp/cell-setup.sh
              name: nova-bin
              readOnly: true
              subPath: cell-setup.sh
            - mountPath: /etc/nova
              name: etcnova
            - mountPath: /etc/nova/nova.conf
              name: nova-etc
              readOnly: true
              subPath: nova.conf
            - mountPath: /etc/nova/policy.yaml
              name: nova-etc
              readOnly: true
              subPath: policy.yaml
          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:rabbitmq-nova,openstack:percona-xtradb-haproxy,openstack:keystone-api,openstack:nova-api
            - name: DEPENDENCY_JOBS
              value: nova-db-sync,nova-rabbit-init
            - name: DEPENDENCY_DAEMONSET
            - name: DEPENDENCY_CONTAINER
            - name: DEPENDENCY_POD_JSON
              value: '[{"labels":{"application":"nova","component":"compute"},"requireSameNode":false}]'
            - 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: nova-cell-setup-cron
          serviceAccountName: nova-cell-setup-cron
          terminationGracePeriodSeconds: 30
          volumes:
          - emptyDir: {}
            name: pod-tmp
          - emptyDir: {}
            name: etcnova
          - name: nova-etc
            secret:
              defaultMode: 292
              secretName: nova-etc
          - configMap:
              defaultMode: 365
              name: nova-bin
            name: nova-bin
  schedule: 0 */1 * * *
  startingDeadlineSeconds: 600
  successfulJobsHistoryLimit: 3
  suspend: false
status:
  lastScheduleTime: "2026-04-23T01:00:00Z"
  lastSuccessfulTime: "2026-04-23T01:00:16Z"
