-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
kubeadm: remove kubeadm config print-defaults #71467
kubeadm: remove kubeadm config print-defaults #71467
Conversation
/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.
/approve
/lgtm
I'm kind of surprised/saddened that there were not tests associated with it.
/retest Review the full test history for this PR. Silence the bot with an |
1 similar comment
/retest Review the full test history for this PR. Silence the bot with an |
|
/retest Review the full test history for this PR. Silence the bot with an |
1 similar comment
/retest Review the full test history for this PR. Silence the bot with an |
/hold |
4efb568
to
70bd6e5
Compare
Thanks @xiangpengzhao ! Should be OK now. |
/retest |
/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.
/lgtm
cmd/kubeadm/app/cmd/config.go
Outdated
return []byte{}, errors.Errorf("--api-object needs to be one of %v", getAllAPIObjectNames()) | ||
} | ||
return getDefaultComponentConfigBytes(registration) | ||
realobj, ok := registration.GetFromInternalConfig(&defaultedInitConfig.ClusterConfiguration) |
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.
Maybe use realObj
or just obj
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 spotting this one @yagonobre ! Just fixed it.
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.
Nice!
Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
70bd6e5
to
ffb670b
Compare
/lgtm |
/test pull-kubernetes-integration |
/test pull-kubernetes-e2e-kops-aws |
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.
nit: I think you can delete the // TODO: Probably move to getDefaultedClusterConfig?
comment now.
/lgtm
/approve
Thanks @rosti for the cleanup!
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: luxas, rosti, timothysc 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 |
/retest |
1 similar comment
/retest |
print-default subcommand got removed in 1.14 See: kubernetes/kubernetes#71467 Signed-off-by: Manuel Rüger <manuel@rueg.eu>
print-default subcommand got removed in 1.14 See: kubernetes/kubernetes#71467 Signed-off-by: Manuel Rüger <manuel@rueg.eu>
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Remove the old and deprecated
kubeadm config print-defaults
command.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):refs kubernetes/kubeadm#1152
Special notes for your reviewer:
This one is for 1.14.
/cc @kubernetes/sig-cluster-lifecycle-pr-reviews
/area kubeadm
/assign @fabriziopandini
/assign @timothysc
Does this PR introduce a user-facing change?: