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

kubelet: remove the --bootstrap-checkpoint-path feature #91577

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

knabben
Copy link
Member

@knabben knabben commented May 29, 2020

What type of PR is this?

/kind cleanup
/area kubelet
/area kubelet-api

What this PR does / why we need it:

Removing --bootstrap-checkpoint-path flag and related code.

Which issue(s) this PR fixes:

Fixes #92763
Refs #86843 #72202 (comment)

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

The Kubelet's `--bootstrap-checkpoint-path` option is now removed.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/kubelet area/kubelet-api cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 29, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @knabben. Thanks for your PR.

I'm waiting for a kubernetes 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.

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.

@knabben
Copy link
Member Author

knabben commented May 29, 2020

/assign @timothysc

We are writing the possible alternatives in the deprecation warning, lmk if you have something to enhace the comment.

@timothysc
Copy link
Member

We should remove the associated code as well that is plumbed through.

/cc @yastij

@k8s-ci-robot k8s-ci-robot requested a review from yastij May 29, 2020 15:19
@knabben
Copy link
Member Author

knabben commented May 29, 2020

The process for deprecating these flags is to wait 2-4 releases before the final cleanup, first we add the deprecation warning. So, this is mostly planned for 1.23, does it works for you?

@@ -394,6 +393,8 @@ func (f *KubeletFlags) AddFlags(mainfs *pflag.FlagSet) {
fs.MarkDeprecated("chaos-chance", "will be removed in a future version.")
fs.StringVar(&f.SeccompProfileRoot, "seccomp-profile-root", f.SeccompProfileRoot, "<Warning: Alpha feature> Directory path for seccomp profiles.")
fs.MarkDeprecated("seccomp-profile-root", "will be removed in 1.23, in favor of using the `<root-dir>/seccomp` directory")
fs.StringVar(&f.BootstrapCheckpointPath, "bootstrap-checkpoint-path", f.BootstrapCheckpointPath, "<Warning: Alpha feature> Path to the directory where the checkpoints are stored")
Copy link
Member

Choose a reason for hiding this comment

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

this is marked as an alpha feature, as per our deprecation policy https://kubernetes.io/docs/reference/using-api/deprecation-policy/#deprecating-a-flag-or-cli this can be removed immediately as pointed by @timothysc

Copy link
Member

Choose a reason for hiding this comment

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

agree... let's not carry deprecated alpha-level functionality

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for pointing in the docs, I will remove the code/flag in this PR.

Copy link
Member Author

@knabben knabben May 31, 2020

Choose a reason for hiding this comment

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

Rolling back:

  1. Initial basic bootstrap-checkpoint support #50984, the PR introduced the flag and the initial implementation of pod checkpoint.
  2. parts of Node-level Checkpointing manager: Migrate dockershim and device plugin manager checkpointing  #56040 since the original checkpoint ended using the Checkpoint Manager.

Copy link
Member

Choose a reason for hiding this comment

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

I'll defer to sig-node reviewers on the partial rollback

@yastij
Copy link
Member

yastij commented May 29, 2020

cc @liggitt - as we discussed this a while ago

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. sig/apps Categorizes an issue or PR as relevant to SIG Apps. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels May 31, 2020
@kow3ns
Copy link
Member

kow3ns commented Jun 1, 2020

/remove-sig apps

@k8s-ci-robot k8s-ci-robot removed the sig/apps Categorizes an issue or PR as relevant to SIG Apps. label Jun 1, 2020
@k8s-ci-robot k8s-ci-robot added the sig/apps Categorizes an issue or PR as relevant to SIG Apps. label Jun 3, 2020
@knabben knabben closed this Jun 10, 2020
@knabben knabben reopened this Jun 10, 2020
@yastij
Copy link
Member

yastij commented Jun 11, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 11, 2020
@knabben
Copy link
Member Author

knabben commented Jun 12, 2020

/test pull-kubernetes-e2e-gce-storage-slow

@yastij
Copy link
Member

yastij commented Jun 24, 2020

ping @kubernetes/sig-node-api-reviews

@k8s-ci-robot k8s-ci-robot added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label Jun 24, 2020
@fejta-bot
Copy link

This PR may require API review.

If so, when the changes are ready, complete the pre-review checklist and request an API review.

Status of requested reviews is tracked in the API Review project.

@yastij
Copy link
Member

yastij commented Jun 24, 2020

/remove-label api-review

@k8s-ci-robot
Copy link
Contributor

@yastij: Those labels are not set on the issue: api-review

In response to this:

/remove-label api-review

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
Copy link
Contributor

@yastij: The label(s) /remove-label api-change cannot be applied. These labels are supported: api-review, community/discussion, community/maintenance, community/question, cuj/build-train-deploy, cuj/multi-user, platform/aws, platform/azure, platform/gcp, platform/minikube, platform/other, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash

In response to this:

/remove-label api-change

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.

@liggitt
Copy link
Member

liggitt commented Jun 24, 2020

lgtm, will defer to node approvers

@neolit123
Copy link
Member

/retitle kubelet: remove the --bootstrap-checkpoint-path feature

@k8s-ci-robot k8s-ci-robot changed the title Deprecating Kubelet --bootstrap-checkpoint-path flag kubelet: remove the --bootstrap-checkpoint-path feature Jul 2, 2020
@neolit123
Copy link
Member

neolit123 commented Jul 2, 2020

@knabben

please add Fixes #92763 in the PR description.

#92763

@neolit123
Copy link
Member

/assign @derekwaynecarr

@liggitt liggitt added this to the v1.19 milestone Jul 8, 2020
@derekwaynecarr
Copy link
Member

reviewing now.

@derekwaynecarr
Copy link
Member

/approve
/lgtm

ironically, we are likely to require some alternate form of checkpoint for pod resource consumption to facilitate vertical autoscaling, but we can safely remove this particular use of checkpointing. thanks for the pr.

@derekwaynecarr
Copy link
Member

@liggitt can you approve api change?

@liggitt
Copy link
Member

liggitt commented Jul 8, 2020

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: derekwaynecarr, knabben, liggitt

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 Jul 8, 2020
@k8s-ci-robot k8s-ci-robot merged commit 1e3eeba into kubernetes:master Jul 9, 2020
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. area/kubelet area/kubelet-api cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/node Categorizes an issue or PR as relevant to SIG Node. 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.

cleanup the code in the kubelet for bootstrap checkpointing
10 participants