elastisys / compliantkubernetes-kubespray

Apache License 2.0
28 stars 7 forks source link

Refactor bin scripts #343

Open aarnq opened 8 months ago

aarnq commented 8 months ago

Is your feature request related to a problem? Please describe.

With the addition of the managed upgrade script we should make a better effort to refactor the bin scripts so we improve the safety of running it by including checks used for run-playbook and make them use the same code path to invoke ansible.

Describe the solution you'd like

Ideally I would want to have a simpler command like run-playbook-managed to run any playbook in a managed way, and then have the managed upgrade as a default specialised function that is maintained and QA'ed per release to ensure that it can complete an upgrade.

Definition of done:

Bin scripts are refactored, and the managed upgrade script has the same protection and invocation as the regular run-playbook.

aarnq commented 5 months ago

@elastisys/scrum-masters could we prioritise this issue to make the managed upgrade the way to upgrade?