Skip to content

Commit

Permalink
Enable release hook template to access .Values (#1485)
Browse files Browse the repository at this point in the history
Fixes #1484
  • Loading branch information
mumoshu committed Sep 21, 2020
1 parent 8db03f9 commit ff81b2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/state/state.go
Expand Up @@ -1885,7 +1885,12 @@ func (st *HelmState) triggerReleaseEvent(evt string, evtErr error, r *ReleaseSpe
Logger: st.logger,
ReadFile: st.readFile,
}
vals, err := st.Values()
if err != nil {
return false, err
}
data := map[string]interface{}{
"Values": vals,
"Release": r,
"HelmfileCommand": helmfileCmd,
}
Expand Down

0 comments on commit ff81b2f

Please sign in to comment.