apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: manila
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-17T06:29:41Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: manila
    component: share
    release_group: manila
  name: manila-share
  namespace: openstack
  resourceVersion: "21299"
  uid: c936082e-af19-4ff6-9415-c495583fee2b
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: manila
      component: share
      release_group: manila
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: bb337655ca836a574ef5b77cc25769960919c5d88c47cd275859a1e99cb169fa
        configmap-etc-hash: 601e42c0f98504c88be09625b6ae0d0aa7387874b1ede2b9115bb432424eb806
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: manila
        component: share
        release_group: manila
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - manila
                - key: application
                  operator: In
                  values:
                  - manila
                - key: component
                  operator: In
                  values:
                  - share
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/manila-share.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/manila:main@sha256:42eae6acdc2ab6be7908d9f96303776f796349bed866e1808452a8507d82a7a2
        imagePullPolicy: IfNotPresent
        name: manila-share
        resources: {}
        securityContext:
          privileged: true
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/pod-shared
          name: pod-shared
        - mountPath: /etc/manila
          name: etcmanila
        - mountPath: /var/lib/manila
          name: state-tmp
        - mountPath: /etc/manila/manila.conf
          name: manila-etc
          readOnly: true
          subPath: manila.conf
        - mountPath: /etc/manila/rootwrap.conf
          name: manila-etc
          subPath: rootwrap.conf
        - mountPath: /etc/sudoers.d/kolla_manila_sudoers
          name: manila-etc
          readOnly: true
          subPath: manila_sudoers
        - mountPath: /etc/sudoers.d/kolla_manila_volume_sudoers
          name: manila-etc
          readOnly: true
          subPath: manila_sudoers
        - mountPath: /run/openvswitch
          name: run-openvswitch
          readOnly: true
        - mountPath: /etc/manila/rootwrap.d/share.filters
          name: manila-etc
          readOnly: true
          subPath: share.filters
        - mountPath: /etc/manila/policy.yaml
          name: manila-etc
          readOnly: true
          subPath: policy.yaml
        - mountPath: /tmp/manila-share.sh
          name: manila-bin
          readOnly: true
          subPath: manila-share.sh
        - mountPath: /etc/manila/ssh-keys
          name: ssh-keys
      dnsPolicy: ClusterFirstWithHostNet
      hostNetwork: true
      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:percona-xtradb-haproxy,openstack:keystone-api,openstack:rabbitmq-manila
        - name: DEPENDENCY_JOBS
          value: manila-db-sync,manila-ks-user,manila-ks-endpoints,manila-rabbit-init
        - name: DEPENDENCY_DAEMONSET
        - name: DEPENDENCY_CONTAINER
        - name: DEPENDENCY_POD_JSON
          value: '[{"labels":{"application":"openvswitch","component":"server"},"requireSameNode":true}]'
        - name: DEPENDENCY_CUSTOM_RESOURCE
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge
        imagePullPolicy: IfNotPresent
        name: init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsUser: 65534
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      - command:
        - /tmp/manila-share-init.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/manila:main@sha256:42eae6acdc2ab6be7908d9f96303776f796349bed866e1808452a8507d82a7a2
        imagePullPolicy: IfNotPresent
        name: manila-share-init
        resources: {}
        securityContext:
          privileged: true
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/manila-share-init.sh
          name: manila-bin
          readOnly: true
          subPath: manila-share-init.sh
        - mountPath: /tmp/pod-shared
          name: pod-shared
        - mountPath: /etc/manila/ssh-keys
          name: ssh-keys
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsUser: 42424
      serviceAccount: manila-share
      serviceAccountName: manila-share
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: pod-shared
      - emptyDir: {}
        name: state-tmp
      - emptyDir: {}
        name: etcmanila
      - hostPath:
          path: /run/openvswitch
          type: Directory
        name: run-openvswitch
      - name: manila-etc
        secret:
          defaultMode: 292
          secretName: manila-etc
      - configMap:
          defaultMode: 365
          name: manila-bin
        name: manila-bin
      - name: ssh-keys
        secret:
          defaultMode: 420
          secretName: manila-ssh-keys
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-17T06:29:41Z"
    lastUpdateTime: "2026-04-17T06:29:41Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-17T06:29:41Z"
    lastUpdateTime: "2026-04-17T06:31:51Z"
    message: ReplicaSet "manila-share-5cb479b8dc" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
