mirror of
https://github.com/helm/chart-testing.git
synced 2026-02-05 09:45:14 +01:00
Add flag for disabling config printing (#269)
By default, ct prints the config on startup. This can be problematic because it may contain senstivie data when helm-repo-extra-args contains passwords. The new flag enables turning off config printing and disables it by default. Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
This commit is contained in:
@@ -96,9 +96,7 @@ func LoadConfiguration(cfgFile string, cmd *cobra.Command, printConfig bool) (*C
|
||||
return nil, errors.Wrap(err, "Error loading config file")
|
||||
}
|
||||
} else {
|
||||
if printConfig {
|
||||
fmt.Println("Using config file: ", v.ConfigFileUsed())
|
||||
}
|
||||
fmt.Println("Using config file:", v.ConfigFileUsed())
|
||||
}
|
||||
|
||||
isLint := strings.Contains(cmd.Use, "lint")
|
||||
|
||||
Reference in New Issue
Block a user