refactor cluster create command (frontend only) #10334
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #10289
related: #10133, #10287
Changes
User facing
cluster create qemu
andcluster create docker
cluster create
still functions all the same)cluster create
commands) (previously not all the flags were checked). This is technically a breaking change. Please let me know if it should be a warning at first.(QEMU only)
or(docker only)
at the start of the flag descriptioncluster create -h
) group flags by providers and then sort alphabetically.See results to the command documentation in the reference docs
Internal
clustermaker
packageother
kubeconfig.SinglePath()
which errors if multiple configs are definedNotes to reviewers
This might look like a massive change, but it's mostly just moving existing logic around with added tests. I've failed to get the integration tests running locally, so I'd love to see the results of a ci run and will fix any issues if they come up. As I can't perform thorough qemu testing on my mac machine I'm fairly certain some bugs remain, but they should be easy to fix once found thanks to the testable logic and clear separation of concerns.
Please let me know if I've missed something or if you have any ideas <3