apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: staffeln
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-08T06:38:46Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: staffeln
    component: conductor
    release_group: staffeln
  name: staffeln-conductor
  namespace: openstack
  resourceVersion: "10694"
  uid: 69f2ec77-fc35-474b-ba41-c2ce14c7c053
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: staffeln
      component: conductor
      release_group: staffeln
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: b3f4f73275255f12624ed24bea6af0cba303b560549383a082efe21750e864ce
        configmap-etc-hash: b0202df0c51cd1da6427f81fecbdf49fe2aece4c5ee83d424555c51016d6f722
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: staffeln
        component: conductor
        release_group: staffeln
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - staffeln
                - key: application
                  operator: In
                  values:
                  - staffeln
                - key: component
                  operator: In
                  values:
                  - conductor
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/staffeln-conductor.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/staffeln:latest@sha256:ff76e0c282c9a4bbdb0656353fb3e32e94fb2b9e50f69bf63262dd81fee24c4b
        imagePullPolicy: IfNotPresent
        name: staffeln-conductor
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /etc/staffeln
          name: etcstaffeln
        - mountPath: /var/lib/staffeln
          name: state-tmp
        - mountPath: /etc/staffeln/staffeln.conf
          name: staffeln-etc
          readOnly: true
          subPath: staffeln.conf
        - mountPath: /etc/staffeln/openrc
          name: staffeln-etc
          readOnly: true
          subPath: openrc
        - mountPath: /tmp/staffeln-conductor.sh
          name: staffeln-bin
          readOnly: true
          subPath: staffeln-conductor.sh
      dnsPolicy: ClusterFirst
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsUser: 42424
      serviceAccount: staffeln-conductor
      serviceAccountName: staffeln-conductor
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: state-tmp
      - emptyDir: {}
        name: etcstaffeln
      - name: staffeln-etc
        secret:
          defaultMode: 292
          secretName: staffeln-etc
      - configMap:
          defaultMode: 365
          name: staffeln-bin
        name: staffeln-bin
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-08T06:38:46Z"
    lastUpdateTime: "2026-04-08T06:38:46Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-08T06:38:46Z"
    lastUpdateTime: "2026-04-08T06:38:53Z"
    message: ReplicaSet "staffeln-conductor-84d9b74995" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
