elastisys / compliantkubernetes-kubespray

Apache License 2.0
28 stars 7 forks source link

Allow `upgrade prepare` to run on just one cluster #315

Closed Ajarmar closed 11 months ago

Ajarmar commented 1 year ago

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

Additional context

Definition of done:

upgrade prepare can be run on just one cluster at a time.