Add --skip-tests to helmfile template command (#2057)

* Add skip-tests to helmfile template command

* Fix formatting
This commit is contained in:
drivelikebrazil
2022-01-22 15:26:17 +09:00
committed by GitHub
parent 87e5903705
commit debd3c0eea
5 changed files with 20 additions and 0 deletions
+8
View File
@@ -282,6 +282,10 @@ func main() {
Name: "include-crds",
Usage: "include CRDs in the templated output",
},
cli.BoolFlag{
Name: "skip-tests",
Usage: "skip tests from templated output",
},
cli.BoolFlag{
Name: "include-needs",
Usage: `automatically include releases from the target release's "needs" when --selector/-l flag is provided. Does nothing when when --selector/-l flag is not provided`,
@@ -934,6 +938,10 @@ func (c configImpl) IncludeCRDs() bool {
return c.c.Bool("include-crds")
}
func (c configImpl) SkipTests() bool {
return c.c.Bool("skip-tests")
}
func (c configImpl) Logger() *zap.SugaredLogger {
return c.c.App.Metadata["logger"].(*zap.SugaredLogger)
}