apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    helm.sh/hook: post-install,post-upgrade
    helm.sh/hook-weight: "-4"
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-23T10:36:14Z"
  generation: 1
  labels:
    application: horizon
    component: db-sync
    release_group: horizon
  name: horizon-db-sync
  namespace: openstack
  resourceVersion: "6607"
  uid: 1eff7440-b234-4ae1-b5f2-ea660ce9c06f
spec:
  backoffLimit: 6
  completionMode: NonIndexed
  completions: 1
  parallelism: 1
  selector:
    matchLabels:
      batch.kubernetes.io/controller-uid: 1eff7440-b234-4ae1-b5f2-ea660ce9c06f
  suspend: false
  template:
    metadata:
      creationTimestamp: null
      labels:
        application: horizon
        batch.kubernetes.io/controller-uid: 1eff7440-b234-4ae1-b5f2-ea660ce9c06f
        batch.kubernetes.io/job-name: horizon-db-sync
        component: db-sync
        controller-uid: 1eff7440-b234-4ae1-b5f2-ea660ce9c06f
        job-name: horizon-db-sync
        release_group: horizon
    spec:
      containers:
      - command:
        - /tmp/db-sync.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/horizon:2023.1@sha256:8fba299aaf72ab94540ef20e18a29fc4eccfd5eb61af1086bb4c704bdc95de50
        imagePullPolicy: IfNotPresent
        name: horizon-db-sync
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: false
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/openstack-dashboard/local_settings
          name: horizon-etc
          readOnly: true
          subPath: local_settings
        - mountPath: /tmp/db-sync.sh
          name: horizon-bin
          readOnly: true
          subPath: db-sync.sh
        - mountPath: /tmp/manage.py
          name: horizon-bin
          readOnly: true
          subPath: manage.py
      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: horizon-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@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: horizon-db-sync
      serviceAccountName: horizon-db-sync
      terminationGracePeriodSeconds: 30
      volumes:
      - name: horizon-etc
        secret:
          defaultMode: 292
          secretName: horizon-etc
      - configMap:
          defaultMode: 365
          name: horizon-bin
        name: horizon-bin
status:
  completionTime: "2026-04-23T10:36:33Z"
  conditions:
  - lastProbeTime: "2026-04-23T10:36:33Z"
    lastTransitionTime: "2026-04-23T10:36:33Z"
    status: "True"
    type: Complete
  ready: 0
  startTime: "2026-04-23T10:36:14Z"
  succeeded: 1
  uncountedTerminatedPods: {}
