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

Automatically restart `shared-resource-csi-driver-webhook` pods when the secret `shared-resource-csi-driver-webhook-serving-cert` is updated

    XMLWordPrintable

Details

    • Story
    • Resolution: Unresolved
    • Undefined
    • None
    • None
    • None

    Description

      The pod `shared-resource-csi-driver-webhook` mounts the secret:

      $ cat assets/webhook/deployment.yaml
      kind: Deployment
      metadata:
        name: shared-resource-csi-driver-webhook
        ...
      spec:
        template:
          spec:
            containers:
      
              volumeMounts:
              - mountPath: /etc/secrets/shared-resource-csi-driver-webhook-serving-cert/
                name: shared-resource-csi-driver-webhook-serving-cert
      
            volumes:
            - name: shared-resource-csi-driver-webhook-serving-cert
              secret:
                secretName: shared-resource-csi-driver-webhook-serving-cert
      

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: