New ๐ŸŒŠ wave for @helm

Commit ecbe0ef6

ecbe0ef6c3f9Merged

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

Description

feat: official diff mode = none

Details

Commit
ecbe0ef6c3f9
Parent
c9c41881c9cd

pkg/action/build.gomodifiedView file

@@ -33,6 +33,9 @@
3333
3434 // DiffModeLocal is a subcommand name for diffing manifests in two plans.
3535 DiffModeLocal = "local"
36+
37+ // DiffModeNone is a subcommand name for skipping diffing.
38+ DiffModeNone = "none"
3639 )
3740
3841 // Run is main function for 'build' CLI command.
@@ -73,8 +76,10 @@
7376 case DiffModeLive:
7477 log.Info("๐Ÿ†š Diff manifests in the kubernetes cluster")
7578 newPlan.DiffLive(ctx, i.diff.ShowSecret, i.diff.Wide, i.diff.ThreeWayMerge)
79+ case DiffModeNone:
80+ log.Info("๐Ÿ†š Skip diffing")
7681 default:
77- log.Warnf("I dont know what is %q diff mode. I am skiping diff.", i.diffMode)
82+ log.Warnf("I don't know what is %q diff mode. I am skiping diff.", i.diffMode)
7883 }
7984
8085 err = newPlan.Export(ctx, i.skipUnchanged)