apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2026-04-06T12:18:43Z"
  generation: 2
  labels:
    service: watcher-applier
  name: watcher-applier
  namespace: openstack
  ownerReferences:
  - apiVersion: watcher.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: WatcherApplier
    name: watcher-applier
    uid: 138f5423-9baa-4e7c-b5f6-d23664ea44c9
  resourceVersion: "50590"
  uid: d53d6997-2cbe-47aa-b96f-c4cb02e668df
spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: OrderedReady
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      service: watcher-applier
  serviceName: ""
  template:
    metadata:
      creationTimestamp: null
      labels:
        service: watcher-applier
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: service
                  operator: In
                  values:
                  - watcher-applier
              topologyKey: kubernetes.io/hostname
            weight: 100
      containers:
      - args:
        - -c
        - /usr/local/bin/kolla_start
        command:
        - /bin/bash
        env:
        - name: CONFIG_HASH
          value: nch664h65hc4h57bhd4hbch87h575h569h587h7ch6h67h5b5h5b7h5bh686h77h55fh577h9bh5bfh5bhf6hd4h5bfh65h64hbfh5bch8cq
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        image: 38.102.83.94:5001/podified-master-centos10/openstack-watcher-applier:watcher_latest
        imagePullPolicy: IfNotPresent
        livenessProbe:
          exec:
            command:
            - /usr/bin/pgrep
            - -r
            - DRST
            - watcher-applier
          failureThreshold: 3
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 10
        name: watcher-applier
        readinessProbe:
          exec:
            command:
            - /usr/bin/pgrep
            - -r
            - DRST
            - watcher-applier
          failureThreshold: 3
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        securityContext:
          runAsUser: 42451
        startupProbe:
          exec:
            command:
            - /usr/bin/pgrep
            - -r
            - DRST
            - watcher-applier
          failureThreshold: 6
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /var/lib/config-data/default
          name: config-data
          readOnly: true
        - mountPath: /etc/my.cnf
          name: config-data
          readOnly: true
          subPath: my.cnf
        - mountPath: /var/lib/kolla/config_files/config.json
          name: config-data
          readOnly: true
          subPath: watcher-applier-config.json
        - mountPath: /var/log/watcher
          name: logs
        - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
          name: combined-ca-bundle
          readOnly: true
          subPath: tls-ca-bundle.pem
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: watcher-watcher
      serviceAccountName: watcher-watcher
      terminationGracePeriodSeconds: 30
      volumes:
      - name: config-data
        secret:
          defaultMode: 420
          secretName: watcher-applier-config-data
      - emptyDir: {}
        name: logs
      - name: config-data-custom
        secret:
          defaultMode: 420
          secretName: watcher-applier-config-data
      - name: combined-ca-bundle
        secret:
          defaultMode: 292
          secretName: combined-ca-bundle
  updateStrategy:
    rollingUpdate:
      partition: 0
    type: RollingUpdate
status:
  availableReplicas: 1
  collisionCount: 0
  currentReplicas: 1
  currentRevision: watcher-applier-788489888b
  observedGeneration: 2
  readyReplicas: 1
  replicas: 1
  updateRevision: watcher-applier-788489888b
  updatedReplicas: 1
