apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    helm.sh/hook: post-install,post-upgrade
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-12T21:55:29Z"
  generation: 1
  labels:
    application: tempest
    batch.kubernetes.io/controller-uid: 1a406d92-7066-4c53-931b-a7882751fa78
    batch.kubernetes.io/job-name: tempest-run-tests
    component: run-tests
    controller-uid: 1a406d92-7066-4c53-931b-a7882751fa78
    job-name: tempest-run-tests
    release_group: tempest
  name: tempest-run-tests
  namespace: openstack
  resourceVersion: "38009"
  uid: 1a406d92-7066-4c53-931b-a7882751fa78
spec:
  backoffLimit: 0
  completionMode: NonIndexed
  completions: 1
  parallelism: 1
  selector:
    matchLabels:
      batch.kubernetes.io/controller-uid: 1a406d92-7066-4c53-931b-a7882751fa78
  suspend: false
  template:
    metadata:
      creationTimestamp: null
      labels:
        application: tempest
        batch.kubernetes.io/controller-uid: 1a406d92-7066-4c53-931b-a7882751fa78
        batch.kubernetes.io/job-name: tempest-run-tests
        component: run-tests
        controller-uid: 1a406d92-7066-4c53-931b-a7882751fa78
        job-name: tempest-run-tests
        release_group: tempest
    spec:
      containers:
      - command:
        - /tmp/run-tests.sh
        env:
        - name: OS_IDENTITY_API_VERSION
          value: "3"
        - name: OS_AUTH_URL
          valueFrom:
            secretKeyRef:
              key: OS_AUTH_URL
              name: tempest-keystone-admin
        - name: OS_REGION_NAME
          valueFrom:
            secretKeyRef:
              key: OS_REGION_NAME
              name: tempest-keystone-admin
        - name: OS_INTERFACE
          valueFrom:
            secretKeyRef:
              key: OS_INTERFACE
              name: tempest-keystone-admin
        - name: OS_ENDPOINT_TYPE
          valueFrom:
            secretKeyRef:
              key: OS_INTERFACE
              name: tempest-keystone-admin
        - name: OS_PROJECT_DOMAIN_NAME
          valueFrom:
            secretKeyRef:
              key: OS_PROJECT_DOMAIN_NAME
              name: tempest-keystone-admin
        - name: OS_PROJECT_NAME
          valueFrom:
            secretKeyRef:
              key: OS_PROJECT_NAME
              name: tempest-keystone-admin
        - name: OS_USER_DOMAIN_NAME
          valueFrom:
            secretKeyRef:
              key: OS_USER_DOMAIN_NAME
              name: tempest-keystone-admin
        - name: OS_USERNAME
          valueFrom:
            secretKeyRef:
              key: OS_USERNAME
              name: tempest-keystone-admin
        - name: OS_PASSWORD
          valueFrom:
            secretKeyRef:
              key: OS_PASSWORD
              name: tempest-keystone-admin
        - name: OS_DEFAULT_DOMAIN
          valueFrom:
            secretKeyRef:
              key: OS_DEFAULT_DOMAIN
              name: tempest-keystone-admin
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/tempest:main@sha256:3eda49a91e2e6aebe6562669733d014c5f73e32e64cc11953f45b20fc14b3a7a
        imagePullPolicy: IfNotPresent
        name: tempest-run-tests
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/run-tests.sh
          name: tempest-bin
          readOnly: true
          subPath: run-tests.sh
        - mountPath: /etc/tempest
          name: etctempest
        - mountPath: /etc/tempest/tempest.conf
          name: tempest-etc
          readOnly: true
          subPath: tempest.conf
        - mountPath: /etc/tempest/logging.conf
          name: tempest-etc
          readOnly: true
          subPath: logging.conf
        - mountPath: /.stestr
          name: stestr
        - mountPath: /var/lib/tempest/data
          name: tempest-reports
      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:keystone-api
        - name: DEPENDENCY_JOBS
          value: tempest-ks-user
        - 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
      - command:
        - chown
        - -R
        - 'root:'
        - /var/lib/tempest/data
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/tempest:main@sha256:3eda49a91e2e6aebe6562669733d014c5f73e32e64cc11953f45b20fc14b3a7a
        imagePullPolicy: IfNotPresent
        name: tempest-run-tests-init
        resources: {}
        securityContext:
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /var/lib/tempest/data
          name: tempest-reports
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Never
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: tempest-run-tests
      serviceAccountName: tempest-run-tests
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: etctempest
      - name: tempest-etc
        secret:
          defaultMode: 292
          secretName: tempest-etc
      - configMap:
          defaultMode: 365
          name: tempest-bin
        name: tempest-bin
      - hostPath:
          path: /tmp/stestr
          type: ""
        name: stestr
      - emptyDir: {}
        name: tempest-reports
status:
  completionTime: "2026-04-12T22:04:06Z"
  conditions:
  - lastProbeTime: "2026-04-12T22:04:06Z"
    lastTransitionTime: "2026-04-12T22:04:06Z"
    status: "True"
    type: Complete
  ready: 0
  startTime: "2026-04-12T21:55:29Z"
  succeeded: 1
  uncountedTerminatedPods: {}
