apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: cloudnative-pg-barman-cloud
    meta.helm.sh/release-namespace: cnpg-system
  creationTimestamp: "2026-07-17T05:34:05Z"
  generation: 1
  labels:
    app.kubernetes.io/instance: cloudnative-pg-barman-cloud
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: plugin-barman-cloud
    app.kubernetes.io/version: v0.11.0
    helm.sh/chart: plugin-barman-cloud-0.5.0
  name: cloudnative-pg-barman-cloud
  namespace: cnpg-system
  resourceVersion: "2919"
  uid: 6db7ab41-cec7-430a-a7f8-67bb8dacba76
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app.kubernetes.io/instance: cloudnative-pg-barman-cloud
      app.kubernetes.io/name: plugin-barman-cloud
  strategy:
    type: Recreate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app.kubernetes.io/instance: cloudnative-pg-barman-cloud
        app.kubernetes.io/name: plugin-barman-cloud
    spec:
      containers:
      - args:
        - operator
        - --server-cert=/server/tls.crt
        - --server-key=/server/tls.key
        - --client-cert=/client/tls.crt
        - --server-address=:9090
        - --leader-elect
        - --log-level=debug
        env:
        - name: SIDECAR_IMAGE
          valueFrom:
            configMapKeyRef:
              key: SIDECAR_IMAGE
              name: plugin-barman-cloud-config
        image: harbor.atmosphere.dev/ghcr.io/cloudnative-pg/plugin-barman-cloud:v0.11.0
        imagePullPolicy: IfNotPresent
        name: barman-cloud
        ports:
        - containerPort: 9090
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          initialDelaySeconds: 10
          periodSeconds: 10
          successThreshold: 1
          tcpSocket:
            port: 9090
          timeoutSeconds: 1
        resources:
          limits:
            cpu: 500m
        securityContext:
          allowPrivilegeEscalation: false
          capabilities:
            drop:
            - ALL
          readOnlyRootFilesystem: true
          runAsGroup: 10001
          runAsUser: 10001
          seccompProfile:
            type: RuntimeDefault
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /server
          name: server
        - mountPath: /client
          name: client
      dnsPolicy: ClusterFirst
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsNonRoot: true
        seccompProfile:
          type: RuntimeDefault
      serviceAccount: cloudnative-pg-barman-cloud
      serviceAccountName: cloudnative-pg-barman-cloud
      terminationGracePeriodSeconds: 30
      volumes:
      - name: server
        secret:
          defaultMode: 420
          secretName: barman-cloud-server-tls
      - name: client
        secret:
          defaultMode: 420
          secretName: barman-cloud-client-tls
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-07-17T05:34:26Z"
    lastUpdateTime: "2026-07-17T05:34:26Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-07-17T05:34:05Z"
    lastUpdateTime: "2026-07-17T05:34:26Z"
    message: ReplicaSet "cloudnative-pg-barman-cloud-6576f8c458" has successfully
      progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
