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
Conversation
This also deprecated all the sub commands.
/assign @rosti |
There was a problem hiding this 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
There was a problem hiding this 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", |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
/test pull-kubernetes-e2e-gce |
There was a problem hiding this 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
[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 |
/hold cancel |
/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 ofkubeadm 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?: