From 1f7a8ddbe3946e89c3ea609a353381f49695e144 Mon Sep 17 00:00:00 2001 From: Vincent Behar Date: Mon, 31 Dec 2018 17:30:25 +0100 Subject: [PATCH] fix: prepare hook is not executed for diff command (#425) fixes https://github.com/roboll/helmfile/issues/424 note that the "cleanup" hook is already executed as it should --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 24a5b4d2..4bb9b666 100644 --- a/main.go +++ b/main.go @@ -193,6 +193,9 @@ func main() { return errs } } + if errs := state.PrepareRelease(helm, "diff"); errs != nil && len(errs) > 0 { + return errs + } _, errs := executeDiffCommand(c, state, helm, c.Bool("detailed-exitcode"), c.Bool("suppress-secrets")) return errs