Uploaded image for project: 'OpenShift Storage'
  1. OpenShift Storage
  2. STOR-1443

Automatically restart `csi-snapshot-webhook` pods when the secret `csi-snapshot-webhook-secret` is updated

    XMLWordPrintable

Details

    • Story
    • Resolution: Done
    • Undefined
    • None
    • None
    • None

    Description

      The pod `csi-snapshot-webhook` mounts the secret:
      ```

      $ cat assets/webhook/deployment.yaml
      kind: Deployment
      metadata:
        name: csi-snapshot-webhook
        ...
      spec:
        template:
          spec:
            containers:
      
              volumeMounts:
                - name: certs
                  mountPath: /etc/snapshot-validation-webhook/certs
      
            volumes:
            - name: certs
              secret:
                secretName: csi-snapshot-webhook-secret
      

      ```
      Hence, if the secret is updated (e.g. as a result of CA cert update), the Pod must be restarted.

      Attachments

        Issue Links

          Activity

            People

              rh-ee-mpatlaso Maxim Patlasov
              rh-ee-mpatlaso Maxim Patlasov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: