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

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • BU Product Work
    • 1
    • False
    • None
    • False
    • OCPSTRAT-193 - Automatically restart storage operators pods when the CA certificates are updated

      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.

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

                Created:
                Updated: