-
Notifications
You must be signed in to change notification settings - Fork 716
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
Decide on how to handle the extra arg we use in kubeadm join
#1375
Comments
Another phase is the pre-flight join phase. An API server endpoint is required to validate the |
💯 |
copying here/elaborating some notes from the various threads general cosideration about args vs flags general cosideration about args with phased commands
IMO the same should go for args, and AFAIK, currently, only 2 is missing; however this can be fixed by allowing to specifify focus on args with phased kubeadm join The domain of allowed values for The effect on the user of the overlap between
If the user types
if the user mispeslls Assuming that this problem cannot be fixed by transforming |
I think making I see this problem coming from breaking the single responsibility principle. Since both init and join are now responsible for two things, running their command and listing/running subphases, the UX is breaking down. There are many workarounds like @fabriziopandini has pointed out, but I think we could consider moving the phase subcommand out from init and join and into its own command, |
@chuckha I see your point about the single responsibility principle, but such change is not easy to achieve In the short term, what I'm trying to do is to ensure that
This doesn't solve the arg problem, but hopefully avoids new problems |
@ereslibre @fabriziopandini
this results in the following error:
the cause for the error is "interesting" (hint: it's caused by a flag) |
Colour me confused, ❓ |
@ereslibre It's caused by missing parameter for --ignore-preflight-errors I guess. |
😢 |
had a chat with @ereslibre on slack. the above is a cobra issue and we can improve it upstream, but probably only if we get a lot of user reports. |
I agree that cobra issue should be addressed upstream. However, I think that it would be nice to have the possibility to set the Args validation function for leaf phases (if not set this should default to what set for the top-level command). More specifically, we would like to have leaf phases without discovery flags using @ereslibre, if I'm not wrong you already prototyped this. Would you like to take charge of this? |
Yes, I can investigate during the next cycle on this. /assign |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/close This can be eventually reconsidered when wg Component Standard has a proposal for handling flags Vs Config |
@fabriziopandini: Closing this issue. In response to this:
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. |
we treat the extra arg for
kubaedm join
as an endpoint of the API server (or LB) this node want's to join.i known phase that needs this arg is "boostrap".
cc @ereslibre @fabriziopandini
The text was updated successfully, but these errors were encountered: