Skip to content

Bring StorageObjectInUseProtection feature to GA#61325

Closed
pospispa wants to merge 1 commit intokubernetes:masterfrom
pospispa:Bring-StorageObjectInUseProtection-feature-to-GA
Closed

Bring StorageObjectInUseProtection feature to GA#61325
pospispa wants to merge 1 commit intokubernetes:masterfrom
pospispa:Bring-StorageObjectInUseProtection-feature-to-GA

Conversation

@pospispa
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
It brings StorageObjectInUseProtection feature to GA.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes N/A

Special notes for your reviewer:

Release note:

StorageObjectInUseProtection feature is GA.

StorageObjectInUseProtection is Beta in K8s 1.10.

It's brought to GA in K8s 1.11.
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 18, 2018
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pospispa
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers: deads2k, lavalamp

Assign the PR to them by writing /assign @deads2k @lavalamp in a comment when ready.

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

The pull request process is described here

Details 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 cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 18, 2018
@pospispa
Copy link
Copy Markdown
Contributor Author

/sig storage
/kind feature
@jsafrane @NickrenREN @msau42 PTAL

@k8s-ci-robot k8s-ci-robot added sig/storage Categorizes an issue or PR as relevant to SIG Storage. kind/feature Categorizes issue or PR as related to a new feature. labels Mar 18, 2018
@pospispa
Copy link
Copy Markdown
Contributor Author

/cc @saad-ali @childsb

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@pospispa: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-verify 8cef979 link /test pull-kubernetes-verify

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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.

}

func startPVCProtectionController(ctx ControllerContext) (bool, error) {
if utilfeature.DefaultFeatureGate.Enabled(features.StorageObjectInUseProtection) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't typically remove the gate to go GA, we flip the feature status, and that's it.

// beta: v1.10
//
// Postpone deletion of a PV or a PVC when they are being used
StorageObjectInUseProtection utilfeature.Feature = "StorageObjectInUseProtection"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removal of a gate breaks startups that explicitly enabled it. I'd expect this to remain, with GA status, either indefinitely, or for an announced deprecation period

@pospispa
Copy link
Copy Markdown
Contributor Author

@NickrenREN mentioned that it'd be better to firstly combine code of the pvc-protection-controller and pv-protection-controller and afterwards bring the StorageObjectInUseProtection feature to GA.
I agree with that so I'm closing this PR.

@pospispa pospispa closed this Mar 19, 2018
@NickrenREN
Copy link
Copy Markdown
Contributor

I will send out a PR for that

@NickrenREN
Copy link
Copy Markdown
Contributor

PR: #61385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/storage Categorizes an issue or PR as relevant to SIG Storage. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants