mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-07 06:01:40 +02:00
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:
co-authored by
Andrey Tuzhilin
parent
28ade19419
commit
83189dbad3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user