Add "PostRendererArgs" option to be passed to helm (#1133)

* Add "PostRendererArgs" option to be passed to helm

This allows using PowerShell scripts on Windows as Post Renderer.

Signed-off-by: Maarten Boekhold <maarten.boekhold@finastra.com>
This commit is contained in:
Maarten Boekhold
2023-11-21 21:32:14 +08:00
committed by GitHub
parent b764b4ceed
commit d0b8d7ee5e
24 changed files with 160 additions and 57 deletions
+7
View File
@@ -42,6 +42,8 @@ type DiffOptions struct {
ResetValues bool
// Propagate '--post-renderer' to helmv3 template and helm install
PostRenderer string
// Propagate '--post-renderer-args' to helmv3 template and helm install
PostRendererArgs []string
// DiffArgs is the list of arguments to pass to helm-diff.
DiffArgs string
}
@@ -185,3 +187,8 @@ func (t *DiffImpl) ResetValues() bool {
func (t *DiffImpl) PostRenderer() string {
return t.DiffOptions.PostRenderer
}
// PostRendererArgs returns the PostRendererArgs.
func (t *DiffImpl) PostRendererArgs() []string {
return t.DiffOptions.PostRendererArgs
}