diff --git a/cmd/tetragon/flags.go b/cmd/tetragon/flags.go index 986de7aada9..ef33ebc1240 100644 --- a/cmd/tetragon/flags.go +++ b/cmd/tetragon/flags.go @@ -36,7 +36,6 @@ const ( keyGopsAddr = "gops-address" keyEnableProcessCred = "enable-process-cred" keyEnableProcessNs = "enable-process-ns" - keyConfigFile = "config-file" keyTracingPolicy = "tracing-policy" keyTracingPolicyDir = "tracing-policy-dir" @@ -144,13 +143,6 @@ func readAndSetFlags() { option.Config.KMods = viper.GetStringSlice(keyKmods) - // deprecation timeline: deprecated -> 0.10.0, removed -> 0.11.0 - // manually handle the deprecation of --config-file - if viper.IsSet(keyConfigFile) { - log.Warnf("Flag --%s has been deprecated, please use --%s instead", keyConfigFile, keyTracingPolicy) - option.Config.TracingPolicy = viper.GetString(keyConfigFile) - } - // if both --config-file and --tracing-policy are set, the latter takes priority if viper.IsSet(keyTracingPolicy) { option.Config.TracingPolicy = viper.GetString(keyTracingPolicy) } diff --git a/cmd/tetragon/main.go b/cmd/tetragon/main.go index 6e5bbaddd6a..b0f00dab186 100644 --- a/cmd/tetragon/main.go +++ b/cmd/tetragon/main.go @@ -711,10 +711,6 @@ func execute() error { // Tracing policy file flags.String(keyTracingPolicy, "", "Tracing policy file to load at startup") - // --config-file is the deprecated flag for the new --tracing-policy - // deprecation timeline: deprecated -> 0.10.0, removed -> 0.11.0 - flags.String(keyConfigFile, "", "Configuration file to load from") - flags.MarkHidden(keyConfigFile) flags.String(keyTracingPolicyDir, defaults.DefaultTpDir, "Directory from where to load Tracing Policies")