Implement --diff-args (#959)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2023-08-09 19:47:15 +08:00
committed by GitHub
parent ab50997798
commit 9bc7bfc500
9 changed files with 39 additions and 1 deletions
+7
View File
@@ -42,6 +42,8 @@ type DiffOptions struct {
ResetValues bool
// Propagate '--post-renderer' to helmv3 template and helm install
PostRenderer string
// DiffArgs is the list of arguments to pass to helm-diff.
DiffArgs string
}
// NewDiffOptions creates a new Apply
@@ -147,6 +149,11 @@ func (t *DiffImpl) SkipDiffOnInstall() bool {
return t.DiffOptions.SkipDiffOnInstall
}
// DiffArgs returns the list of arguments to pass to helm-diff.
func (t *DiffImpl) DiffArgs() string {
return t.DiffOptions.DiffArgs
}
// Suppress returns the suppress
func (t *DiffImpl) Suppress() []string {
return t.DiffOptions.Suppress