Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STOR-1304: Restart controller pods if metrics serving cert or webhook secret changed #153

Conversation

mpatlasov
Copy link
Contributor

Adding WithSecretHashAnnotationHook() for vmware-vsphere-csi-driver-controller-metrics-serving-cert ensures that new annotation is published in vmware-vsphere-csi-driver-controller deployment. This, in turn, leads to controller pods restart.

Similarly, adding WithSecretHashAnnotationHook() for vmware-vsphere-csi-driver-webhook-secret ensures that new annotation is published in vmware-vsphere-csi-driver-webhook deployment. This, in turn, leads to webhook pods restart.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented May 1, 2023

@mpatlasov: This pull request references STOR-1304 which is a valid jira issue.

In response to this:

Adding WithSecretHashAnnotationHook() for vmware-vsphere-csi-driver-controller-metrics-serving-cert ensures that new annotation is published in vmware-vsphere-csi-driver-controller deployment. This, in turn, leads to controller pods restart.

Similarly, adding WithSecretHashAnnotationHook() for vmware-vsphere-csi-driver-webhook-secret ensures that new annotation is published in vmware-vsphere-csi-driver-webhook deployment. This, in turn, leads to webhook pods restart.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 1, 2023
@openshift-ci openshift-ci bot requested review from dobsonj and tsmetana May 1, 2023 03:42
@mpatlasov
Copy link
Contributor Author

/assign @jsafrane
/label docs-approved
/label px-approved

@openshift-ci openshift-ci bot added docs-approved Signifies that Docs has signed off on this PR px-approved Signifies that Product Support has signed off on this PR labels May 1, 2023
@mpatlasov
Copy link
Contributor Author

/retest

1 similar comment
@mpatlasov
Copy link
Contributor Author

/retest

@jsafrane
Copy link
Contributor

jsafrane commented May 3, 2023

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 3, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 3, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsafrane, mpatlasov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 3, 2023
@Phaow
Copy link
Contributor

Phaow commented May 23, 2023

Pre verifiy passed with the pre merged build 4.13.0-0.ci.test-2023-05-22-055536-ci-ln-84lnz2t-latest

# After the metrics-serving-cert secret changed, driver controller restarted

$ oc get po -l app=vmware-vsphere-csi-driver-controller
NAME                                                    READY   STATUS        RESTARTS   AGE
vmware-vsphere-csi-driver-controller-5b946cdb66-qmzns   0/13    Pending       0          15s
vmware-vsphere-csi-driver-controller-787dcbb746-ndb86   13/13   Terminating   0          16s
vmware-vsphere-csi-driver-controller-86bffdd864-d4hbv   13/13   Running       0          98m
vmware-vsphere-csi-driver-controller-86bffdd864-mqmtk   13/13   Terminating   0          98m

$ oc get po -l app=vmware-vsphere-csi-driver-webhook -w
NAME                                                 READY   STATUS        RESTARTS   AGE
vmware-vsphere-csi-driver-webhook-6b6cb7799d-89d4z   1/1     Terminating   0          36m
vmware-vsphere-csi-driver-webhook-6b6cb7799d-c7bfd   1/1     Terminating   0          36m
vmware-vsphere-csi-driver-webhook-74c4856bfc-tzjdq   1/1     Running       0          23s
vmware-vsphere-csi-driver-webhook-74c4856bfc-xsjf8   1/1     Running       0          23s
vmware-vsphere-csi-driver-webhook-89b7b994-j4rdj     1/1     Terminating   0          25s
vmware-vsphere-csi-driver-webhook-89b7b994-j9lvv     1/1     Terminating   0          25s
vmware-vsphere-csi-driver-webhook-6b6cb7799d-c7bfd   0/1     Terminating   0          36m
vmware-vsphere-csi-driver-webhook-6b6cb7799d-c7bfd   0/1     Terminating   0          36m
vmware-vsphere-csi-driver-webhook-6b6cb7799d-c7bfd   0/1     Terminating   0          36m
vmware-vsphere-csi-driver-webhook-89b7b994-j9lvv     0/1     Terminating   0          34s
vmware-vsphere-csi-driver-webhook-89b7b994-j9lvv     0/1     Terminating   0          34s
vmware-vsphere-csi-driver-webhook-89b7b994-j9lvv     0/1     Terminating   0          34s
vmware-vsphere-csi-driver-webhook-89b7b994-j4rdj     0/1     Terminating   0          34s
vmware-vsphere-csi-driver-webhook-89b7b994-j4rdj     0/1     Terminating   0          34s
vmware-vsphere-csi-driver-webhook-89b7b994-j4rdj     0/1     Terminating   0          34s
vmware-vsphere-csi-driver-webhook-6b6cb7799d-89d4z   0/1     Terminating   0          37m
vmware-vsphere-csi-driver-webhook-6b6cb7799d-89d4z   0/1     Terminating   0          37m
vmware-vsphere-csi-driver-webhook-6b6cb7799d-89d4z   0/1     Terminating   0          37m

@Phaow
Copy link
Contributor

Phaow commented May 23, 2023

/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label May 23, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 19, 2023

@mpatlasov: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 077e002 into openshift:master Jun 19, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants