🐛 Fix the collision of the -d flag in tap with the root level debug flag

This commit is contained in:
M. Mert Yildiran
2023-06-29 02:49:01 +03:00
parent 5f9084e497
commit bf3285cb8b
2 changed files with 1 additions and 1 deletions

View File

@@ -61,5 +61,4 @@ func init() {
tapCmd.Flags().Bool(configStructs.TlsLabel, defaultTapConfig.Tls, "Capture the traffic that's encrypted with OpenSSL or Go crypto/tls libraries")
tapCmd.Flags().Bool(configStructs.IgnoreTaintedLabel, defaultTapConfig.IgnoreTainted, "Ignore tainted pods while running Worker DaemonSet")
tapCmd.Flags().Bool(configStructs.IngressEnabledLabel, defaultTapConfig.Ingress.Enabled, "Enable Ingress")
tapCmd.Flags().Bool(configStructs.DebugLabel, defaultTapConfig.Debug, "Enable the debug mode")
}

View File

@@ -61,6 +61,7 @@ func InitConfig(cmd *cobra.Command) error {
}
Config = CreateDefaultConfig()
Config.Tap.Debug = DebugMode
cmdName = cmd.Name()
if utils.Contains([]string{
"clean",