New ๐ŸŒŠ wave for @helm

Commit fc88d5bf

fc88d5bf35ecMerged

Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 4 files ยท +2 added ยท ~2 modified

Description

feat: fixFields init for diffing

Details

Commit
fc88d5bf35ec
Parent
74e3443609af

pkg/action/build.gomodifiedView file

@@ -110,12 +110,12 @@
110110 return err
111111 }
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,13 @@
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+ return nil
144+ },
141145 Action: toCtx(i.Run),
142146 }
143147 }