Enable helmfile-diff to pass the output format to helm-diff (#1784)

* tests: fix vagrant test run

* feat: added an option to specify the different diff output format

* renamed diff-output to output

* renamed diff-output to output

Co-authored-by: Andrey Tuzhilin <andrey@zelf.co>
This commit is contained in:
astorath
2021-04-24 08:07:24 +09:00
committed by GitHub
co-authored by Andrey Tuzhilin
parent 28ade19419
commit 83189dbad3
9 changed files with 40 additions and 3 deletions
+5
View File
@@ -1664,6 +1664,10 @@ func (st *HelmState) prepareDiffReleases(helm helmexec.Interface, additionalValu
flags = append(flags, "--context", fmt.Sprintf("%d", opts.Context))
}
if opts.Output != "" {
flags = append(flags, "--output", fmt.Sprintf("%s", opts.Output))
}
if opts.Set != nil {
for _, s := range opts.Set {
flags = append(flags, "--set", s)
@@ -1739,6 +1743,7 @@ func (st *HelmState) createHelmContextWithWriter(spec *ReleaseSpec, w io.Writer)
type DiffOpts struct {
Context int
Output string
NoColor bool
Set []string