Is your feature request related to a problem? Please describe.
The command bin/ck8s-kubespray upgrade prepare currently always runs on both clusters, which can cause issues for environments that have multiple workload clusters, or no workload clusters.
Describe the solution you'd like
Make it possible to specify sc or wc to run the command on only one cluster.
Running bin/ck8s-kubespray upgrade <version> prepare prepares the config on both clusters.
Running bin/ck8s-kubespray sc upgrade <version> prepare prepares the config on the management (service) cluster.
Running bin/ck8s-kubespray wc upgrade <version> prepare prepares the config on the workload cluster.
Describe alternatives you've considered
Require that sc or wc is specified (i.e. you can only run it on one cluster at a time)
Require that both is specified to run on both clusters
Additional context
Definition of done:
upgrade prepare can be run on just one cluster at a time.
Is your feature request related to a problem? Please describe. The command
bin/ck8s-kubespray upgrade prepare
currently always runs on both clusters, which can cause issues for environments that have multiple workload clusters, or no workload clusters.Describe the solution you'd like Make it possible to specify
sc
orwc
to run the command on only one cluster.Running
bin/ck8s-kubespray upgrade <version> prepare
prepares the config on both clusters. Runningbin/ck8s-kubespray sc upgrade <version> prepare
prepares the config on the management (service) cluster. Runningbin/ck8s-kubespray wc upgrade <version> prepare
prepares the config on the workload cluster.Describe alternatives you've considered
sc
orwc
is specified (i.e. you can only run it on one cluster at a time)both
is specified to run on both clustersAdditional context
Definition of done:
upgrade prepare
can be run on just one cluster at a time.