fix: update action.go add postrenderer to hook

Signed-off-by: Tan Guofu <267266206@qq.com>
pull/10872/head
Tan Guofu 4 years ago committed by Tan Guofu
parent 0d872ed5e5
commit 19d6526971

@ -220,6 +220,13 @@ func (cfg *Configuration) renderResources(ch *chart.Chart, values chartutil.Valu
if err != nil {
return hs, b, notes, errors.Wrap(err, "error while running post render on files")
}
for _, hook := range hs {
sb, err := pr.Run(bytes.NewBufferString(hook.Manifest))
if err != nil {
return hs, b, notes, errors.Wrap(err, "error while running post render on hooks")
}
hook.Manifest = sb.String()
}
}
return hs, b, notes, nil

Loading…
Cancel
Save