apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    helm.sh/hook: post-install,post-upgrade
    helm.sh/hook-weight: "-4"
  creationTimestamp: "2026-04-26T05:59:00Z"
  generation: 1
  labels:
    application: glance
    component: db-sync
    release_group: glance
  name: glance-db-sync
  namespace: openstack
  resourceVersion: "8480"
  uid: 59de3c0b-7d7b-4bc4-bfed-dfece5fbe99f
spec:
  backoffLimit: 1000
  completionMode: NonIndexed
  completions: 1
  parallelism: 1
  selector:
    matchLabels:
      batch.kubernetes.io/controller-uid: 59de3c0b-7d7b-4bc4-bfed-dfece5fbe99f
  suspend: false
  template:
    metadata:
      annotations:
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: glance
        batch.kubernetes.io/controller-uid: 59de3c0b-7d7b-4bc4-bfed-dfece5fbe99f
        batch.kubernetes.io/job-name: glance-db-sync
        component: db-sync
        controller-uid: 59de3c0b-7d7b-4bc4-bfed-dfece5fbe99f
        job-name: glance-db-sync
        release_group: glance
    spec:
      containers:
      - command:
        - /bin/bash
        - -c
        - /tmp/db-sync.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/glance:main@sha256:b9c065d575cf30d0316d3f1f3cdbde9c153faecc37ed467d62a44049084669ed
        imagePullPolicy: IfNotPresent
        name: glance-db-sync
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/db-sync.sh
          name: db-sync-sh
          readOnly: true
          subPath: db-sync.sh
        - mountPath: /etc/glance
          name: etc-service
        - mountPath: /etc/glance/glance-api.conf
          name: db-sync-conf
          readOnly: true
          subPath: glance-api.conf
        - mountPath: /etc/glance/logging.conf
          name: db-sync-conf
          readOnly: true
          subPath: logging.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
        - name: DEPENDENCY_JOBS
          value: glance-db-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
        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: {}
      serviceAccount: glance-db-sync
      serviceAccountName: glance-db-sync
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - configMap:
          defaultMode: 365
          name: glance-bin
        name: db-sync-sh
      - emptyDir: {}
        name: etc-service
      - name: db-sync-conf
        secret:
          defaultMode: 292
          secretName: glance-etc
status:
  completionTime: "2026-04-26T05:59:46Z"
  conditions:
  - lastProbeTime: "2026-04-26T05:59:46Z"
    lastTransitionTime: "2026-04-26T05:59:46Z"
    status: "True"
    type: Complete
  ready: 0
  startTime: "2026-04-26T05:59:00Z"
  succeeded: 1
  uncountedTerminatedPods: {}
