apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    batch.kubernetes.io/cronjob-scheduled-timestamp: "2026-03-01T02:00:00Z"
  creationTimestamp: "2026-03-01T02:00:00Z"
  generation: 1
  labels:
    application: nova
    component: cell-setup
    release_group: nova
  name: nova-cell-setup-29538840
  namespace: openstack
  ownerReferences:
  - apiVersion: batch/v1
    blockOwnerDeletion: true
    controller: true
    kind: CronJob
    name: nova-cell-setup
    uid: 772c13f0-4fc0-425a-9a69-c594cbc6848a
  resourceVersion: "16928"
  uid: 01c81817-692c-4e55-ae89-48380c75b797
spec:
  backoffLimit: 6
  completionMode: NonIndexed
  completions: 1
  parallelism: 1
  selector:
    matchLabels:
      batch.kubernetes.io/controller-uid: 01c81817-692c-4e55-ae89-48380c75b797
  suspend: false
  template:
    metadata:
      creationTimestamp: null
      labels:
        application: nova
        batch.kubernetes.io/controller-uid: 01c81817-692c-4e55-ae89-48380c75b797
        batch.kubernetes.io/job-name: nova-cell-setup-29538840
        component: cell-setup
        controller-uid: 01c81817-692c-4e55-ae89-48380c75b797
        job-name: nova-cell-setup-29538840
        release_group: nova
    spec:
      containers:
      - command:
        - /tmp/cell-setup.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/nova:main@sha256:c77ab0c4db038f78e48b8bf5b3f8189c0bb034e5bb66b634ae8d2682f2af9973
        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
status:
  active: 1
  ready: 0
  startTime: "2026-03-01T02:00:00Z"
  uncountedTerminatedPods: {}
