New 🌊 wave for @helm

Commit 51fb6ca0

51fb6ca030b8Merged

Svyatoslav Dumchenko <[email protected]> · 4 years ago · 9 files · +1 added · ~7 modified · -1 deleted

Description

Tune action tests

Details

Commit
51fb6ca030b8
Parent
1cd8cfb9044f

pkg/action/build.gomodifiedView file

@@ -23,9 +23,12 @@
2323 // diffLocal *DiffLocalPlan
2424 }
2525
26-var (
27- diffModeLive = "live"
28- diffModeLocal = "local"
26+const (
27+ // DiffModeLive is a subcommand name for diffing manifests in plan with actually running manifests in k8s.
28+ DiffModeLive = "live"
29+
30+ // DiffModeLocal is a subcommand name for diffing manifests in two plans.
31+ DiffModeLocal = "local"
2932 )
3033
3134 // Run is main function for 'build' CLI command.
@@ -46,7 +49,7 @@
4649 newPlan.PrettyPlan()
4750
4851 switch i.diffMode {
49- case diffModeLocal:
52+ case DiffModeLocal:
5053 oldPlan := plan.New(i.plandir)
5154 if oldPlan.IsExist() {
5255 log.Info("🆚 Diff with previous local plan")
@@ -57,7 +60,7 @@
5760 newPlan.DiffPlan(oldPlan, i.diff.ShowSecret, i.diff.Wide)
5861 }
5962
60- case diffModeLive:
63+ case DiffModeLive:
6164 log.Info("🆚 Diff manifests in the kubernetes cluster")
6265 newPlan.DiffLive(i.diff.ShowSecret, i.diff.Wide)
6366 default: