elastisys / compliantkubernetes-kubespray

Apache License 2.0
26 stars 7 forks source link

Run callback scripts when upgrading grouped nodes #338

Open ayoubeddafali opened 7 months ago

ayoubeddafali commented 7 months ago

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

Add possibility of running custom scripts when upgrading nodes with the managed-upgrade script Describe the solution you'd like

As part of the upgrade managed script, it would be super nice if we could have a script where it ran each node in the group one by one and between them it executes something that you give it until it executes successfully ( some kind of a callback function).

This would be great for the rook-ceph group, since we need to wait for the ceph cluster to be HEALTH_OK before proceeding with the next node when upgrading them. Otherwise we risk corrupting/loose data.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Definition of done: We should be able to run custom scripts on nodes of specific groups, and wait before proceeding until those scripts succeeds