-
Notifications
You must be signed in to change notification settings - Fork 216
[release-4.18] USHIFT-5291: Remove CSI webhook due to deprecation #4436
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
[release-4.18] USHIFT-5291: Remove CSI webhook due to deprecation #4436
Conversation
@pmtk: This pull request references USHIFT-5291 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.18.0" version, but no target version was set. In response to this: 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 openshift-eng/jira-lifecycle-plugin repository. |
efd38db
to
eb8d30b
Compare
/test test-rpm |
@@ -27,4 +28,7 @@ func init() { | |||
if err := sccv1.AddToScheme(scheme); err != nil { | |||
panic(err) | |||
} | |||
if err := arv1.AddToScheme(scheme); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary? Should we add a comment to explain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary to make deletion of arv1.ValidatingWebhookConfiguration
in deleteCSIWebhook
working. Standard kubernetes+Go procedure
} else { | ||
klog.Warningf("CSI snapshot webhook is disabled") | ||
if err := deleteCSIWebhook(ctx, kubeconfigPath); err != nil { | ||
klog.Warningf("Failed to delete resources of CSI Webhook, possibly corrupt state: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we need to speculate
on the reason of the error in the message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I just copied it from the storage.go where topolvm deletion is happening
eb8d30b
to
4730f0b
Compare
/test ocp-full-conformance-serial-rhel-eus |
2ca9eb1
to
4730f0b
Compare
/retest |
4730f0b
to
b4c1a5d
Compare
@pmtk: 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-sigs/prow repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/label backport-risk-assessed
/label cherry-pick-approved
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pacevedom, pmtk 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/label jira/valid-bug
2018187
into
openshift:release-4.18
No description provided.