apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    hash: n5d8h645h79h588h9ch686h66bh59h546h68bh699hfdh68dh5f9h566h56bh659h64bh5d4h7h9ch65ch554hbch546h56fh67fh5bh5bch59dh89h66dq
    k8s.v1.cni.cncf.io/networks: '[{"name":"ctlplane","namespace":"openstack","interface":"ctlplane"}]'
  creationTimestamp: "2026-04-06T12:23:30Z"
  generation: 1
  labels:
    app: openstackansibleee
    openstackdataplanedeployment: edpm-deployment
    openstackdataplanenodeset: openstack-edpm-ipam
    openstackdataplaneservice: repo-setup
  name: repo-setup-edpm-deployment-openstack-edpm-ipam
  namespace: openstack
  ownerReferences:
  - apiVersion: dataplane.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: OpenStackDataPlaneDeployment
    name: edpm-deployment
    uid: c01218b2-da66-42f9-b5cd-9841b8b97503
  resourceVersion: "53929"
  uid: 34d82cf8-a147-445e-acc2-b0bf8532c3d9
spec:
  backoffLimit: 6
  completionMode: NonIndexed
  completions: 1
  manualSelector: false
  parallelism: 1
  podReplacementPolicy: TerminatingOrFailed
  selector:
    matchLabels:
      batch.kubernetes.io/controller-uid: 34d82cf8-a147-445e-acc2-b0bf8532c3d9
  suspend: false
  template:
    metadata:
      annotations:
        k8s.v1.cni.cncf.io/networks: '[{"name":"ctlplane","namespace":"openstack","interface":"ctlplane"}]'
      creationTimestamp: null
      labels:
        app: openstackansibleee
        batch.kubernetes.io/controller-uid: 34d82cf8-a147-445e-acc2-b0bf8532c3d9
        batch.kubernetes.io/job-name: repo-setup-edpm-deployment-openstack-edpm-ipam
        controller-uid: 34d82cf8-a147-445e-acc2-b0bf8532c3d9
        job-name: repo-setup-edpm-deployment-openstack-edpm-ipam
        openstackdataplanedeployment: edpm-deployment
        openstackdataplanenodeset: openstack-edpm-ipam
        openstackdataplaneservice: repo-setup
    spec:
      containers:
      - args:
        - ansible-runner
        - run
        - /runner
        - -p
        - playbook.yaml
        - -i
        - repo-setup-edpm-deployment-openstack-edpm-ipam
        env:
        - name: ANSIBLE_VERBOSITY
          value: "2"
        - name: RUNNER_PLAYBOOK
          value: |2+

            - hosts: all
              strategy: linear
              tasks:
                - name: Enable podified-repos
                  become: true
                  ansible.builtin.shell: |
                    set -euxo pipefail
                    pushd /var/tmp
                    curl -sL https://github.com/openstack-k8s-operators/repo-setup/archive/refs/heads/main.tar.gz | tar -xz
                    pushd repo-setup-main
                    python3 -m venv ./venv
                    PBR_VERSION=0.0.0 ./venv/bin/pip install ./
                    ./venv/bin/repo-setup current-podified -b antelope
                    popd
                    rm -rf repo-setup-main


        - name: RUNNER_EXTRA_VARS
          value: |2+

            edpm_override_hosts: openstack-edpm-ipam
            edpm_service_type: repo-setup


        envFrom:
        - configMapRef:
            name: openstack-aee-default-env
            optional: true
        image: quay.io/openstack-k8s-operators/openstack-ansibleee-runner:latest
        imagePullPolicy: Always
        name: repo-setup-edpm-deployment-openstack-edpm-ipam
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /var/lib/openstack/cacerts/repo-setup
          name: repo-setup-combined-ca-bundle
        - mountPath: /runner/env/ssh_key/ssh_key_openstack-edpm-ipam
          name: ssh-key-openstack-edpm-ipam
          subPath: ssh_key_openstack-edpm-ipam
        - mountPath: /runner/inventory/hosts
          name: inventory
          subPath: inventory
      dnsConfig:
        nameservers:
        - 10.217.5.99
        searches:
        - ctlplane.example.com
      dnsPolicy: None
      restartPolicy: Never
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: openstack-edpm-ipam
      serviceAccountName: openstack-edpm-ipam
      terminationGracePeriodSeconds: 30
      volumes:
      - name: repo-setup-combined-ca-bundle
        secret:
          defaultMode: 420
          secretName: combined-ca-bundle
      - name: ssh-key-openstack-edpm-ipam
        secret:
          defaultMode: 384
          items:
          - key: ssh-privatekey
            path: ssh_key_openstack-edpm-ipam
          secretName: dataplane-ansible-ssh-private-key-secret
      - name: inventory
        secret:
          defaultMode: 420
          items:
          - key: inventory
            path: inventory
          secretName: dataplanenodeset-openstack-edpm-ipam
status:
  completionTime: "2026-04-06T12:23:54Z"
  conditions:
  - lastProbeTime: "2026-04-06T12:23:54Z"
    lastTransitionTime: "2026-04-06T12:23:54Z"
    message: Reached expected number of succeeded pods
    reason: CompletionsReached
    status: "True"
    type: SuccessCriteriaMet
  - lastProbeTime: "2026-04-06T12:23:54Z"
    lastTransitionTime: "2026-04-06T12:23:54Z"
    message: Reached expected number of succeeded pods
    reason: CompletionsReached
    status: "True"
    type: Complete
  ready: 0
  startTime: "2026-04-06T12:23:30Z"
  succeeded: 1
  terminating: 0
  uncountedTerminatedPods: {}
