Closed yati1998 closed 5 days ago
Hi @yati1998. Thanks for your PR.
I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
The validation webhook would prevent creating multiple default volume snapshot classes (and multiple volume group snapshot classes) for the same CSI driver. The CEL rules we included won't do that, and the corresponding error will be raised when dynamically provisioning a VolumeSnapshot or VolumeGroupSnapshot.
In my opinion, this is a behavior change that we should appropriately describe in the documentation and the release notes.
/ok-to-test
Please fix your commit message.
The validation webhook would prevent creating multiple default volume snapshot classes (and multiple volume group snapshot classes) for the same CSI driver. The CEL rules we included won't do that, and the corresponding error will be raised when dynamically provisioning a VolumeSnapshot or VolumeGroupSnapshot.
In my opinion, this is a behavior change that we should appropriately describe in the documentation and the release notes.
@leonardoce Can you suggest some wording for this change in the documentation and the release notes?
@yati1998 can you please fix the commit message? The subject line has a typo:
remove validation-webhook as it is being depriciated
The following comment lines need to be updated because they are still referring to the webhook:
https://github.com/kubernetes-csi/external-snapshotter/blob/9cb9f0f1a7059f9af97f16173ac9aab912a2b989/pkg/common-controller/groupsnapshot_controller_helper.go#L306 https://github.com/kubernetes-csi/external-snapshotter/blob/9cb9f0f1a7059f9af97f16173ac9aab912a2b989/pkg/common-controller/groupsnapshot_controller_helper.go#L1123 https://github.com/kubernetes-csi/external-snapshotter/blob/9cb9f0f1a7059f9af97f16173ac9aab912a2b989/pkg/common-controller/snapshot_controller.go#L95 https://github.com/kubernetes-csi/external-snapshotter/blob/9cb9f0f1a7059f9af97f16173ac9aab912a2b989/pkg/common-controller/snapshot_controller.go#L196
Are we still using these labels? https://github.com/kubernetes-csi/external-snapshotter/blob/9cb9f0f1a7059f9af97f16173ac9aab912a2b989/pkg/utils/util.go#L153-L158
At first glance, they seem to be used only by a few functions in the testing framework, and those functions appear to be not used anymore.
Are we still using these labels?
At first glance, they seem to be used only by a few functions in the testing framework, and those functions appear to be not used anymore.
is this related webhook? maybe we can cover this in different PR
@yati1998 Can you open an issue for the invalid labels to be removed in a different PR? Can you please address other comments?
It looks fine; we still need the release notes block in the PR's body.
@leonardoce @xing-yang can you please review the PR again?
/lgtm
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: xing-yang, yati1998
The full list of commands accepted by this bot can be found here.
The pull request process is described here
removes validation webhook as it is being deprecated
fixes: #1181