-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
update VolumeAttributesClass Deletion Protection #4713
Conversation
carlory
commented
Jun 11, 2024
- One-line PR description: update VolumeAttributesClass Deletion Protection
- Issue link: Kubernetes VolumeAttributesClass ModifyVolume #3751
- Other comments:
55b2c8f
to
5035c28
Compare
/cc @msau42 @xing-yang |
|
||
There are a few conditions that will trigger add/remove pvc finalizers in the VolumeAttributesClass: | ||
The **StorageObjectInUseProtection** admission plugin is enabled by default, but it's likely disable by users, so the **vac_finalizer_controller** is also responsible for setting the finalizer on the VolumeAttributesClass object if the finalizer is not set when the controller observes the VolumeAttributesClass object or PVC/PV object that references the VolumeAttributesClass object. |
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.
Do we need the admission controller if we're also going to have a controller and this is best effort?
@carlory please verify the PRR questions are all current - it's been a year and I believe there are one or two new questions since then. Thanks! |
The PRR update is in #4698 |
@@ -437,46 +437,38 @@ Operation metrics from [csiOperationsLatencyMetric](https://github.com/kubernete | |||
|
|||
#### VolumeAttributesClass Deletion Protection | |||
|
|||
While a VolumeAttributesClass is referenced by any PVC, we will prevent the object from being deleted by adding a finalizer([reference](https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/admission/storage/storageobjectinuseprotection/admission.go)). |
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 remove the reference to the admission controller. It will make users confused if we don't use it.
cc @msau42 updated. please review it again.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carlory, msau42 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 |