Add --no-extras flag to join command #425
Merged
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.
Why do you need this?
It was found that when joining servers to a cluster any additional servers would not honour the
--no-extras
flag used with the install command.It is necessary, therefore, for the flag to be added to
join
and only be applied in situations where--server
has been provided.Although closed, #408 refers
Description
Adds
--no-extras
to the join command such that it will work when used with--server
.How Has This Been Tested?
Add new flag without --server
Add new flag with --server
Note the addition of
--disable servicelb --disable traefik
to the output commandWith
--tls-san
added as this was in the area of change:With
--tls-san
and without--server
:Demonstrates previous behaviour unchanged
Additional Test case using
--no-extras
with--k3s-extra-args
set:--cluster
:--no-extras
&--k3s-extra-args
:Verify that the extra args have been appropriately concatenated within the print-command output.
--k3-extra-args
has also been applied:Types of changes
Checklist:
git commit -s