From bf3285cb8b4e1b6b1e19e964fca51c57a5b13902 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Thu, 29 Jun 2023 02:49:01 +0300 Subject: [PATCH] :bug: Fix the collision of the `-d` flag in `tap` with the root level debug flag --- cmd/tap.go | 1 - config/config.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tap.go b/cmd/tap.go index 081601e27..7755e8659 100644 --- a/cmd/tap.go +++ b/cmd/tap.go @@ -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") } diff --git a/config/config.go b/config/config.go index 59d1eabaf..c4c37a9a1 100644 --- a/config/config.go +++ b/config/config.go @@ -61,6 +61,7 @@ func InitConfig(cmd *cobra.Command) error { } Config = CreateDefaultConfig() + Config.Tap.Debug = DebugMode cmdName = cmd.Name() if utils.Contains([]string{ "clean",