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
This commit is contained in:
Vincent Behar
2019-01-01 01:30:25 +09:00
committed by KUOKA Yusuke
parent 413ab4f55b
commit 1f7a8ddbe3
+3
View File
@@ -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