elastisys / compliantkubernetes-kubespray

Apache License 2.0
28 stars 7 forks source link

bin: allow per cluster upgrade prepare #317

Closed anders-elastisys closed 1 year ago

anders-elastisys commented 1 year ago

What kind of PR is this?

Required: Mark one of the following that is applicable:

Optional: Mark one or more of the following that are applicable:

[!important] Critical security fixes should be marked with kind/security Breaking changes should be marked kind/admin-change or kind/dev-change depending on type

Platform Administrator notice

This PR changes the number of arguments required to run the upgrade command, as with this PR you need to specify the specific cluster, sc, wc, or both to apply to both clusters as the command did previously. The ck8s-kubespray usage has been updated to clarify this:

➜ ./bin/ck8s-kubespray         
COMMANDS:
  ...
  upgrade                                     prepares config for upgrade
      args: <wc|sc|both> <version> prepare

What does this PR do / why do we need this PR?

This PR allows for running the upgrade prepare command each cluster (wc and sc) separately, which is particularly useful for multi-workload cluster environments, or environments without workload clusters. Previously the upgrade command always applied for both wc and sc.

Additional information to reviewers

Screenshots

Checklist