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 2018-12-31 17:30:25 +01:00 committed by KUOKA Yusuke
parent 413ab4f55b
commit 1f7a8ddbe3
1 changed files with 3 additions and 0 deletions

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