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

update VolumeAttributesClass Deletion Protection #4713

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

carlory
Copy link
Member

@carlory carlory commented Jun 11, 2024

  • One-line PR description: update VolumeAttributesClass Deletion Protection
  • Other comments:

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory sig/storage Categorizes an issue or PR as relevant to SIG Storage. labels Jun 11, 2024
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 11, 2024
@carlory carlory force-pushed the kep-3751 branch 2 times, most recently from 55b2c8f to 5035c28 Compare June 11, 2024 07:41
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 11, 2024
@carlory
Copy link
Member Author

carlory commented Jun 11, 2024

/cc @msau42 @xing-yang

@k8s-ci-robot k8s-ci-robot requested a review from msau42 June 11, 2024 07:44

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.
Copy link
Member

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?

@johnbelamaric
Copy link
Member

@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!

@johnbelamaric johnbelamaric self-assigned this Jun 11, 2024
@msau42
Copy link
Member

msau42 commented Jun 12, 2024

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)).
Copy link
Member Author

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.

@msau42
Copy link
Member

msau42 commented Jun 12, 2024

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 12, 2024
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 12, 2024
@k8s-ci-robot k8s-ci-robot merged commit 2653c26 into kubernetes:master Jun 12, 2024
4 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.31 milestone Jun 12, 2024
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants