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 KEP with DeleteOnScaledownOnly policy #2545

Closed
wants to merge 1 commit into from

Conversation

mattcary
Copy link
Contributor

@mattcary mattcary commented Mar 1, 2021

Here is the change proposed from the comments in #2440.

Note that I implemented this as an extra policy enum rather than a list as @msau42 suggested. After looking at it, the list didn't really buy much because there would have to be validation to avoid combining "Retain" with any of the other policies. Since we're just adding one more policy that seems easier than the overhead and additional user errors/friction of validating the list. Maybe I missed something, though, LMK.

/assign @msau42
/assign @sebgl
/assign @wojtek-t

@k8s-ci-robot
Copy link
Contributor

@mattcary: GitHub didn't allow me to assign the following users: sebgl.

Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

Here is the change proposed from the comments in #2440.

Note that I implemented this as an extra policy enum rather than a list as @msau42 suggested. After looking at it, the list didn't really buy much because there would have to be validation to avoid combining "Retain" with any of the other policies. Since we're just adding one more policy that seems easier than the overhead and additional user errors/friction of validating the list. Maybe I missed something, though, LMK.

/assign @msau42
/assign @sebgl
/assign @wojtek-t

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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 1, 2021
@k8s-ci-robot k8s-ci-robot added the kind/kep Categorizes KEP tracking issues and PRs modifying the KEP directory label Mar 1, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mattcary
To complete the pull request process, please assign janetkuo after the PR has been reviewed.
You can assign the PR to them by writing /assign @janetkuo in a comment when ready.

The full list of commands accepted by this bot can be found 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 sig/apps Categorizes an issue or PR as relevant to SIG Apps. label Mar 1, 2021
@mattcary mattcary force-pushed the multidel branch 2 times, most recently from 623768a to 75cce4b Compare March 1, 2021 18:14
Copy link
Member

@msau42 msau42 left a comment

Choose a reason for hiding this comment

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

/lgtm

On a scale down followed by a scale up, will wait until the old PVC for the removed Pod is deleted and ensure
that the PVC used is a freshly created one. This policy also implies the
former, that is, PVCs will also be deleted when the StatefulSet is deleted.
* `DeleteOnStatefulSetDeletion` - PVCs corresponding to the StatefulSet are deleted
Copy link
Member

Choose a reason for hiding this comment

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

Should this option also have an "Only" suffix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 1, 2021
@wojtek-t
Copy link
Member

wojtek-t commented Mar 1, 2021

/lgtm

Thanks!

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 1, 2021
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

when StatefulSet themselves get deleted. When Pods are deleted as part of a scale
down, PVCs are not deleted. Thus there may be PVCs owned by the StatefulSet that
are not attached to a Pod.
* `DeleteOnScaledownOnly` - When a pod is deleted on scale down, the corresponding PVC
Copy link

Choose a reason for hiding this comment

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

👍 I like the new names, much more explicit.

@mattcary
Copy link
Contributor Author

mattcary commented Mar 2, 2021

/cc @kk-src

@k8s-ci-robot
Copy link
Contributor

@mattcary: GitHub didn't allow me to request PR reviews from the following users: kk-src.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @kk-src

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.

@mattcary
Copy link
Contributor Author

/close

After API review we've gone a slightly different direction, see #2652.

@mattcary mattcary closed this Apr 28, 2021
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/kep Categorizes KEP tracking issues and PRs modifying the KEP directory sig/apps Categorizes an issue or PR as relevant to SIG Apps. 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.

6 participants