apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    helm.sh/hook: post-install,post-upgrade
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-03-20T01:55:43Z"
  generation: 1
  labels:
    application: glance
    component: metadefs-load
    release_group: glance
  name: glance-metadefs-load
  namespace: openstack
  resourceVersion: "9486"
  uid: ad9a9186-f973-4d4b-8985-048982addfd5
spec:
  backoffLimit: 6
  completionMode: NonIndexed
  completions: 1
  parallelism: 1
  selector:
    matchLabels:
      batch.kubernetes.io/controller-uid: ad9a9186-f973-4d4b-8985-048982addfd5
  suspend: false
  template:
    metadata:
      annotations:
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: glance
        batch.kubernetes.io/controller-uid: ad9a9186-f973-4d4b-8985-048982addfd5
        batch.kubernetes.io/job-name: glance-metadefs-load
        component: metadefs_load
        controller-uid: ad9a9186-f973-4d4b-8985-048982addfd5
        job-name: glance-metadefs-load
        release_group: glance
    spec:
      containers:
      - command:
        - /tmp/metadefs-load.sh
        env:
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/glance:main@sha256:e1635e9ae9fb0d99cd48e2105a2dbb3a03136394baa102c7609ac183a3bee327
        imagePullPolicy: IfNotPresent
        name: glance-metadefs-load
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/metadefs-load.sh
          name: glance-bin
          readOnly: true
          subPath: metadefs-load.sh
        - mountPath: /etc/glance
          name: etcglance
        - mountPath: /etc/glance/glance-api.conf
          name: glance-etc
          readOnly: true
          subPath: glance-api.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
        - name: DEPENDENCY_JOBS
          value: glance-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:
        runAsUser: 42424
      serviceAccount: glance-metadefs-load
      serviceAccountName: glance-metadefs-load
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - configMap:
          defaultMode: 365
          name: glance-bin
        name: glance-bin
      - emptyDir: {}
        name: etcglance
      - name: glance-etc
        secret:
          defaultMode: 292
          secretName: glance-etc
status:
  completionTime: "2026-03-20T01:55:55Z"
  conditions:
  - lastProbeTime: "2026-03-20T01:55:55Z"
    lastTransitionTime: "2026-03-20T01:55:55Z"
    status: "True"
    type: Complete
  ready: 0
  startTime: "2026-03-20T01:55:43Z"
  succeeded: 1
  uncountedTerminatedPods: {}
