fix: talosctl cluster create not to enforce kubeprism always
The command should be able to deploy old versions of Talos as well, even before KubePrism. The version contract correctly enables/disables KubePrism by default, so take default flag value as "don't change defaults". Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
parent
320064c5a8
commit
e128d3c827
@ -523,9 +523,11 @@ func create(ctx context.Context, flags *pflag.FlagSet) (err error) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
genOptions = append(genOptions,
|
if kubePrismPort != constants.DefaultKubePrismPort {
|
||||||
generate.WithKubePrismPort(kubePrismPort),
|
genOptions = append(genOptions,
|
||||||
)
|
generate.WithKubePrismPort(kubePrismPort),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
defaultInternalLB, defaultEndpoint := provisioner.GetLoadBalancers(request.Network)
|
defaultInternalLB, defaultEndpoint := provisioner.GetLoadBalancers(request.Network)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user