apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    hash: ndch597h687h565hf4h546hcbh689h8fh55ch8dh64bh59fhd4h64dh64dh54h65dh674h666h644hcch697hb5hfch54h547h66h584h57ch54ch64dq
  creationTimestamp: "2026-04-02T13:58:55Z"
  generation: 1
  labels:
    job-name: swift-ring-rebalance
  name: swift-ring-rebalance
  namespace: openstack
  ownerReferences:
  - apiVersion: swift.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: SwiftRing
    name: swift-ring
    uid: c2304195-2a54-4641-9556-c81c8d8b8a64
  resourceVersion: "42047"
  uid: 97d75979-0cde-4aa4-90b5-ed23c33a1aa7
spec:
  backoffLimit: 6
  completionMode: NonIndexed
  completions: 1
  manualSelector: false
  parallelism: 1
  podReplacementPolicy: TerminatingOrFailed
  selector:
    matchLabels:
      batch.kubernetes.io/controller-uid: 97d75979-0cde-4aa4-90b5-ed23c33a1aa7
  suspend: false
  template:
    metadata:
      creationTimestamp: null
      labels:
        batch.kubernetes.io/controller-uid: 97d75979-0cde-4aa4-90b5-ed23c33a1aa7
        batch.kubernetes.io/job-name: swift-ring-rebalance
        controller-uid: 97d75979-0cde-4aa4-90b5-ed23c33a1aa7
        job-name: swift-ring-rebalance
    spec:
      containers:
      - command:
        - /usr/local/bin/swift-ring-tool
        - all
        env:
        - name: CM_NAME
          value: swift-ring-files
        - name: NAMESPACE
          value: openstack
        - name: OWNER_APIVERSION
          value: swift.openstack.org/v1beta1
        - name: OWNER_KIND
          value: SwiftRing
        - name: OWNER_NAME
          value: swift-ring
        - name: OWNER_UID
          value: c2304195-2a54-4641-9556-c81c8d8b8a64
        - name: SWIFT_MIN_PART_HOURS
          value: "1"
        - name: SWIFT_PART_POWER
          value: "10"
        - name: SWIFT_REPLICAS
          value: "1"
        image: quay.io/podified-antelope-centos9/openstack-swift-proxy-server:current-podified
        imagePullPolicy: IfNotPresent
        name: swift-ring-rebalance
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          capabilities:
            drop:
            - ALL
          runAsNonRoot: true
          runAsUser: 42445
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /usr/local/bin/swift-ring-tool
          name: scripts
          readOnly: true
          subPath: swift-ring-tool
        - mountPath: /etc/swift/swift.conf
          name: swiftconf
          readOnly: true
          subPath: swift.conf
        - mountPath: /etc/swift
          name: etc-swift
        - mountPath: /var/lib/config-data/ring-devices
          name: ring-data-devices
          readOnly: true
        - mountPath: /etc/swift/dispersion.conf
          name: dispersionconf
          readOnly: true
          subPath: dispersion.conf
        - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
          name: combined-ca-bundle
          readOnly: true
          subPath: tls-ca-bundle.pem
        workingDir: /etc/swift
      dnsPolicy: ClusterFirst
      restartPolicy: OnFailure
      schedulerName: default-scheduler
      securityContext:
        seccompProfile:
          type: RuntimeDefault
      serviceAccount: swift-swift
      serviceAccountName: swift-swift
      terminationGracePeriodSeconds: 30
      volumes:
      - configMap:
          defaultMode: 493
          items:
          - key: swift-ring-tool
            path: swift-ring-tool
          name: swift-ring-scripts
        name: scripts
      - name: swiftconf
        secret:
          defaultMode: 420
          items:
          - key: swift.conf
            path: swift.conf
          secretName: swift-conf
      - emptyDir: {}
        name: etc-swift
      - configMap:
          defaultMode: 420
          name: swift-ring-config-data
        name: ring-data-devices
      - name: dispersionconf
        secret:
          defaultMode: 420
          items:
          - key: dispersion.conf
            path: dispersion.conf
          optional: true
          secretName: swift-proxy-config-data
      - name: combined-ca-bundle
        secret:
          defaultMode: 292
          secretName: combined-ca-bundle
status:
  completionTime: "2026-04-02T13:59:14Z"
  conditions:
  - lastProbeTime: "2026-04-02T13:59:14Z"
    lastTransitionTime: "2026-04-02T13:59:14Z"
    message: Reached expected number of succeeded pods
    reason: CompletionsReached
    status: "True"
    type: SuccessCriteriaMet
  - lastProbeTime: "2026-04-02T13:59:14Z"
    lastTransitionTime: "2026-04-02T13:59:14Z"
    message: Reached expected number of succeeded pods
    reason: CompletionsReached
    status: "True"
    type: Complete
  ready: 0
  startTime: "2026-04-02T13:58:55Z"
  succeeded: 1
  terminating: 0
  uncountedTerminatedPods: {}
