-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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: allow usage --config with --print-join-command #69624
kubeadm: allow usage --config with --print-join-command #69624
Conversation
kubeadm token create --print-join-command --config <path> fails with Error: can not mix '--config' with arguments [print-join-command] As print-joint command can't be put into the configuration file it should be possible to use those 2 options at the same time. Added print-join-command options to the list of exceptions in ValidateMixedArguments check to allow its usage with --config option. Fixes: kubernetes/kubeadm#1166
/retest |
/hold |
/kind bug both --config and --print-join-command should be allowed, which can be observed in this function: /assign @fabriziopandini |
something else to note here: this doesn't seem to work. |
@bart0sh Thanks for this PR!
If I got it right this is what this PR is achieving
I'm not sure I got your point but it seems to me unrelated to this issue/PR |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bart0sh, fabriziopandini 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 |
yes
there is another PR that sort of achieves that: |
What this PR does / why we need it:
kubeadm token create --print-join-command --config
fails with Error: can not mix '--config' with arguments [print-join-command]
As print-joint command can't be put into the configuration file it
should be possible to use those 2 options at the same time.
Added print-join-command options to the list of exceptions in
ValidateMixedArguments check to allow its usage with --config option.
Which issue(s) this PR fixes:
Fixes kubernetes/kubeadm#1166
Release note: