Commit d049cad0
d049cad0a8ccMerged
Dmitriy Zhilyaev <[email protected]> · 2 years ago · 11 files · +2 added · ~9 modified
Description
Merge pull request #828 from helmwave/helm-diff-more-args
Helm diff more args
Details
- Commit
- d049cad0a8cc
- Parent
- 8afb4c994c8d
- Merge parent
- 5da7622ff1a6
pkg/action/build.gomodifiedView file
@@ -110,12 +110,12 @@
110110
return err111111
}112112
113-
newPlan.DiffPlan(oldPlan, i.diff.ShowSecret, i.diff.Wide)113+
newPlan.DiffPlan(oldPlan, i.diff.Options)114114
}115115
116116
case DiffModeLive:117117
log.Info("🆚 Diff manifests in the kubernetes cluster")118-
newPlan.DiffLive(ctx, i.diff.ShowSecret, i.diff.Wide, i.diff.ThreeWayMerge)118+
newPlan.DiffLive(ctx, i.diff.Options, i.diff.ThreeWayMerge)119119
case DiffModeNone:120120
log.Info("🆚 Skip diffing")121121
default:@@ -135,9 +135,14 @@
135135
// Cmd returns 'build' *cli.Command.136136
func (i *Build) Cmd() *cli.Command {137137
return &cli.Command{138-
Name: "build",139-
Usage: "🏗 build a plan",140-
Flags: i.flags(),138+
Name: "build",139+
Usage: "🏗 build a plan",140+
Flags: i.flags(),141+
Before: func(q *cli.Context) error {142+
i.diff.FixFields()143+
144+
return nil145+
},141146
Action: toCtx(i.Run),142147
}143148
}pkg/action/diff.gomodifiedView file
Loading diff…
pkg/action/diff_live.gomodifiedView file
Loading diff…
pkg/action/diff_local.gomodifiedView file
Loading diff…
pkg/monitor/errors.gomodifiedView file
Loading diff…
pkg/plan/diff.gomodifiedView file
Loading diff…
pkg/plan/new.gomodifiedView file
Loading diff…
pkg/repo/errors.gomodifiedView file
Loading diff…
pkg/template/extra.gomodifiedView file
Loading diff…
tests/18_helmwave.ymladdedView file
Loading diff…
tests/18_values.yamladdedView file
Loading diff…