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

Deprecation of the kubeadm config upload command #77946

Merged
merged 1 commit into from May 17, 2019

Conversation

Klaven
Copy link
Contributor

@Klaven Klaven commented May 15, 2019

/kind cleanup

What this PR does / why we need it:
This PR deprecates the kubeadm config upload command and all of it's sub-commands as a replacement in the form of kubeadm init phase upload-config.

Which issue(s) this PR fixes:
refs #kubernetes/kubeadm#988

Special notes for your reviewer:
Note: I tested cobra and it did not appear that "deprecated" was inherited from the parent command necessitating deprecating the individual sub commands as well.

I thought the comments in the code where nice for anyone browsing the code... but could be labeled a distraction and wasted space. not sure your all preference on that.

Does this PR introduce a user-facing change?:

Deprecates the kubeadm config upload command as it's replacement is now graduated. Please see `kubeadm init phase upload-config`

This also deprecated all the sub commands.
@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/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. 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. labels May 15, 2019
@Klaven
Copy link
Contributor Author

Klaven commented May 15, 2019

/assign @rosti

@k8s-ci-robot k8s-ci-robot added area/kubeadm sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels May 15, 2019
Copy link
Member

@yagonobre yagonobre left a comment

Choose a reason for hiding this comment

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

Thanks!
/lgtm
/priority important-longterm

@k8s-ci-robot k8s-ci-robot added priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels May 15, 2019
Copy link
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

/priority backlog

Short: "Create the in-cluster configuration file for the first time from using flags",
Deprecated: "please see kubeadm init phase upload-config",
Use: "from-flags",
Short: "Create the in-cluster configuration file for the first time from using flags",
Copy link
Member

Choose a reason for hiding this comment

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

just wanted to note that potential consumers of this variant would need to migrate to file only.
also that we need to have this deprecated for 12 months as GA functionality.
cc @rosti

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@neolit123 do you want me to put that in the above deprecation message?

Copy link
Member

Choose a reason for hiding this comment

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

let's wait on rosti's comments.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is actually the worst of them all. You don't get to see what's getting uploaded and users can easily mistake this to "patch" sort of command. Thus, they can inadvertently set some fields of their ClusterConfiguration to defaults and not even notice it.

@k8s-ci-robot k8s-ci-robot added priority/backlog Higher priority than priority/awaiting-more-evidence. labels May 15, 2019
@Klaven
Copy link
Contributor Author

Klaven commented May 15, 2019

/test pull-kubernetes-e2e-gce

Copy link
Contributor

@rosti rosti left a comment

Choose a reason for hiding this comment

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

Thanks for this @Klaven !

I don't think, that there are that many users of kubeadm config upload from-flags, so I don't think, that we should put that much effort in it. At best, if users voice concerns for lack of instructions, we can document on the website how to download their current ClusterConfiguration (with kubectl) and then supply that to the init phase.

@Klaven just a tiny nit, can you change "Fixes" to "Refs" so that the original issue does not get closed upon merge? I want to reuse it to track there the fact that we want to remove the commands after about an year. Ping me when this is done to remove the hold.

/approve
/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 16, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Klaven, rosti

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 May 16, 2019
@rosti
Copy link
Contributor

rosti commented May 16, 2019

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 16, 2019
@k8s-ci-robot k8s-ci-robot merged commit 628e0d8 into kubernetes:master May 17, 2019
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/kubeadm cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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. priority/backlog Higher priority than priority/awaiting-more-evidence. 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/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants