/run/cluster-api/bootstrap-success.complete is always created, even in case of failures #221
Labels
kind/bug
Something isn't working
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Milestone
What happened:
The bootstrap provider is expected to create the
/run/cluster-api/bootstrap-success.complete
sentinel file upon successful bootstrap.Normally the
runcmd
command list will look like:Since cloud-init will run all commands in the list (and collect errors later), the last command will always be executed.
What did you expect to happen:
The
/run/cluster-api/bootstrap-success.complete
file should not be created if any of theruncmd
fails.How to reproduce it:
Bootstrap any rke2 cluster using this provider
Anything else you would like to add:
To add complexity to this issue, the
preRKE2Commands
field can also be used to propagate arbitrary commands.For example:
Environment:
The text was updated successfully, but these errors were encountered: