apiVersion: batch/v1
kind: CronJob
metadata:
  annotations:
    meta.helm.sh/release-name: neutron
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-06-11T02:34:48Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
  name: neutron-ovn-db-sync
  namespace: openstack
  resourceVersion: "39385"
  uid: 59af192b-5b61-4464-8955-580f2ac65a92
spec:
  concurrencyPolicy: Forbid
  failedJobsHistoryLimit: 1
  jobTemplate:
    metadata:
      annotations:
        configmap-bin-hash: c890880e29d1b4244ce1fd1deeac63604dcb1d85fa01859595ca01c529d17aa0
        configmap-etc-hash: aaf6d42246042b90f1bc0906d14706139fe6257ac03301f78f4993515627f6a9
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: neutron
        component: ovn-db-sync
        release_group: neutron
    spec:
      template:
        metadata:
          annotations:
            openstackhelm.openstack.org/release_uuid: ""
          creationTimestamp: null
          labels:
            application: neutron
            component: ovn-db-sync
            release_group: neutron
        spec:
          containers:
          - command:
            - /tmp/neutron-ovn-db-sync.sh
            - log
            image: harbor.atmosphere.dev/ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e
            imagePullPolicy: IfNotPresent
            name: neutron-ovn-db-sync
            resources: {}
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
            volumeMounts:
            - mountPath: /tmp/neutron-ovn-db-sync.sh
              name: neutron-bin
              readOnly: true
              subPath: neutron-ovn-db-sync.sh
            - mountPath: /tmp
              name: pod-tmp
            - mountPath: /tmp/pod-shared
              name: pod-shared
            - mountPath: /var/lib/neutron
              name: pod-var-neutron
            - mountPath: /etc/neutron/neutron.conf
              name: neutron-etc
              readOnly: true
              subPath: neutron.conf
            - mountPath: /etc/neutron/plugins/ml2/ml2_conf.ini
              name: neutron-etc
              readOnly: true
              subPath: ml2_conf.ini
            - mountPath: /etc/neutron/taas_plugin.ini
              name: neutron-etc
              readOnly: true
              subPath: taas_plugin.ini
          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_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
          - command:
            - /tmp/neutron-ovn-init.sh
            image: harbor.atmosphere.dev/ghcr.io/vexxhost/neutron:main@sha256:55f9c67dda4cc7082739eea7cb21810862a56aac6fe8107a5f31627c601ab23e
            imagePullPolicy: IfNotPresent
            name: ovn-neutron-init
            resources: {}
            terminationMessagePath: /dev/termination-log
            terminationMessagePolicy: File
            volumeMounts:
            - mountPath: /tmp/pod-shared
              name: pod-shared
            - mountPath: /tmp/neutron-ovn-init.sh
              name: neutron-bin
              readOnly: true
              subPath: neutron-ovn-init.sh
          nodeSelector:
            openstack-control-plane: enabled
          restartPolicy: OnFailure
          schedulerName: default-scheduler
          securityContext: {}
          serviceAccount: neutron-ovn-db-sync
          serviceAccountName: neutron-ovn-db-sync
          terminationGracePeriodSeconds: 30
          volumes:
          - emptyDir: {}
            name: pod-tmp
          - emptyDir: {}
            name: pod-shared
          - emptyDir: {}
            name: pod-var-neutron
          - configMap:
              defaultMode: 365
              name: neutron-bin
            name: neutron-bin
          - name: neutron-etc
            secret:
              defaultMode: 292
              secretName: neutron-etc
  schedule: '*/5 * * * *'
  successfulJobsHistoryLimit: 3
  suspend: false
status:
  lastScheduleTime: "2026-06-11T03:20:00Z"
  lastSuccessfulTime: "2026-06-11T03:20:42Z"
