From 0519200748df1667c18c63a490e8f290fc35f6f0 Mon Sep 17 00:00:00 2001 From: Tan Guofu <267266206@qq.com> Date: Mon, 18 Apr 2022 18:02:58 +0800 Subject: [PATCH] fix: update action.go add postrenderer to Hooks Manifest Signed-off-by: Tan Guofu <267266206@qq.com> Signed-off-by: guofutan --- pkg/action/action.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/action/action.go b/pkg/action/action.go index 82760250f..57766c16d 100644 --- a/pkg/action/action.go +++ b/pkg/action/action.go @@ -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 manifest") + } + hook.Manifest = sb.String() + } } return hs, b, notes, nil