berops / claudie

Cloud-agnostic managed Kubernetes
https://docs.claudie.io/
Apache License 2.0
600 stars 41 forks source link

chore: remove dangling directories left after nodepool errors #1535

Closed Despire closed 2 weeks ago

Despire commented 3 weeks ago

On error, the directories where templates are generate are left as be. This poses an issue with rolling update when an invalid repository is used where the invalid templates will be left in that directory and any subsequent retries will fail until the invalid templates are removed manually.

This PR simply deleted the directory both on successfully generating the template and also when errored.