Commit 1382fccc
1382fccccc01Merged
zhilyaev <[email protected]> · 5 years ago · 14 files · +1 added · ~13 modified
Description
diff is ready
Details
- Commit
- 1382fccccc01
- Parent
- 830b3686309e
pkg/action/build.gomodifiedView file
@@ -12,6 +12,7 @@
1212
plandir, yml string1313
tags cli.StringSlice1414
matchAll bool15+
diffWide int1516
}1617
1718
func (i *Build) Run() error {@@ -23,19 +24,22 @@
2324
2425
oldPlan := plan.New(i.plandir)2526
if oldPlan.IsExist() {26-
log.Info("Old plan exists")27-
if err := oldPlan.Import(); err != nil {27+
log.Info("Found old plan, try get changes")28+
if err = oldPlan.Import(); err != nil {2829
return err2930
}3031
32+
// Показать Diff33+
newPlan.Diff(oldPlan, i.diffWide)34+
}3135
32-
err = newPlan.Diff(oldPlan)33-
if err != nil {34-
return err35-
}36+
err = newPlan.Export()37+
if err != nil {38+
return err3639
}3740
38-
return newPlan.Export()41+
log.Info("Planfile is ready!")42+
return nil3943
}4044
4145
func (i *Build) Cmd() *cli.Command {@@ -47,11 +51,11 @@
4751
flagTags(&i.tags),4852
flagMatchAllTags(&i.matchAll),4953
flagFile(&i.yml),54+
flagDiffWide(&i.diffWide),5055
},5156
Action: toCtx(i.Run),5257
}5358
}54-
5559
5660
func (i *Build) normalizeTags() []string {5761
return normalizeTagList(i.tags.Value())@@ -67,4 +71,4 @@
6771
sort.Strings(m)6872
6973
return m70-
}74+
}pkg/action/diff.gomodifiedView file
Loading diff…
pkg/action/flags.gomodifiedView file
Loading diff…
pkg/plan/build.gomodifiedView file
Loading diff…
pkg/plan/diff.gomodifiedView file
Loading diff…
pkg/plan/export.gomodifiedView file
Loading diff…
pkg/plan/import.gomodifiedView file
Loading diff…
pkg/plan/new.gomodifiedView file
Loading diff…
pkg/release/sync.gomodifiedView file
Loading diff…
pkg/release/upgrade.gomodifiedView file
Loading diff…
pkg/release/values.gomodifiedView file
Loading diff…
pkg/repo/install.gomodifiedView file
Loading diff…
tests/05_helmwave.ymlmodifiedView file
Loading diff…
tests/values.yamladdedView file
Loading diff…