-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add cli flags for multinode #247
Add cli flags for multinode #247
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fabriziopandini If they are not already assigned, you can assign the PR to them by writing 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 |
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.
i will defer to @BenTheElder and @munnerz on this one.
at this point this is already possible using the config, so this is just a CLI convenience and there are always useful flags that we can add, but my philosophy is "config only, unless something does not make sense to be in the config".
i also think that the argument of "i cannot write config file in my testing setup and i need to use flags only " is invalid. a read-only setup would not work well in the first place and we can technically make kind read a config from stdin too.
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.
Two comments. Thanks for this!
/hold I'm on the fence, I generally dislike flags that cannot be combined with other flags and think that itself makes poor UX, but flags are less effort than config 🤔 |
(also sorry, I believe I requested this initially, but the eagerness people have had to go ahead and use the feature anyhow has been surprising, perhaps we can avoid the messes of combining config and flags, and avoid disjoint flags) |
so in terms of the test jobs we want to add to test-infra these flags will definitely help. yet we still have to pull a repo for the test-cmd script, so we might as well store the topology in a config, so that we don't have to touch test infra if a topology changes. |
9d2ef9c
to
4948227
Compare
@BenTheElder @munnerz @neolit123 thanks for the comments, hopefully, everything is addressed
I agree this is not blocking users, but I think that what discussed in #133 is still valid and many users will benefit from this PR. This IMO compensates the fact that flags and config can't be used together, and so I'm giving another try for getting this in 😉 Feel free to override.
IMO we are ready for another round on config and probably this will fix also the flag vs confg thing, but only if in the target solution the node list will go away. |
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
/hold
This seems generally useful for testing, what's the reservation? |
We've still been discussing how not to dig a hole mixing config and flags. Testing w/ @neolit123 has done pretty well using config only so far so it doesn't seem urgent. Something like #274 in conjunction with this probably makes more sense. We've been discussing reshaping the config to make the single implicit control plane load balancer (for HA) more explicit. |
fwiw as a user if I want to quick-turn a parameter, having a flag is always easier for override. config is great for default, but if you readily tweek parameters... then not so much. I'm hoping @luxas library can help with that in the future. |
Fair. In some respects this will behave a little more like Mixing number of node flags with specific node config won't go well, unless component config pulls some real magic :^) Just logically the behavior for merging these is confusing. I think initially we can't allow mixing these flags with config. If I do config: nodes:
- role: worker
replicas: 3
image: foo
- role: control-plane
image: bar
Then what happens? (with this PR |
4948227
to
51b5678
Compare
New changes are detected. LGTM label has been removed. |
/unassign |
i'm near 50/50 on this feature. NOTE: i'm not seeing users complain about the lack of these flags and the kind config is fairly simple to use, so slightly leaning towards not having these flags in the stock kind CLI for now. |
@fabriziopandini: PR needs rebase. 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. |
@fabriziopandini: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
I'm going to +1 on we probably don't need this, we can revisit in the future if it becomes an issue |
This PR adds CLI flags to change the number of nodes without being forced to use the config files
Fixes: #133