skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

Skaffold should support pre/post lifecycle hooks for `Cleanup`

Open aaron-prindle opened this issue 3 years ago • 3 comments

Issue tracks feature request for skaffold supporting pre/post lifecycle hooks for Cleanup step/phase. This way users could add custom cleanup code as necessary to extend/modify what skaffold does. This would likely involve adding similar UX/functionality to Skaffold's lifecycle pre/post hooks only extended to the Cleanup phase (also would require exposing a Cleanup phase) to allow for this

aaron-prindle avatar Jan 09 '23 21:01 aaron-prindle

We have the same use case as well. Currently we have some pre skaffold script that makes some changes on the target cluster, and we would like to run another script when stopping skaffold that will revert these cluster changes.

netzere avatar Jan 22 '23 13:01 netzere

We have the same use case.

darth-vader-66 avatar Mar 21 '23 19:03 darth-vader-66

We also have the same use case. We need Cleanup hooks

hfakar avatar Jun 26 '24 22:06 hfakar