From 75f9dc43699ae4258aa0688172eb99a40384567b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20N=C3=A9au?= Date: Wed, 21 Aug 2024 11:53:11 +0200 Subject: [PATCH] Remove leftover `disable-gitops` mentions That flag was removed when merging the `GitRepo` and gitOps controllers. --- internal/cmd/controller/agentmanagement/root.go | 1 - internal/cmd/controller/cleanup/root.go | 1 - internal/cmd/controller/gitops/operator.go | 1 - 3 files changed, 3 deletions(-) diff --git a/internal/cmd/controller/agentmanagement/root.go b/internal/cmd/controller/agentmanagement/root.go index 3e307f81f2..d99562a3e4 100644 --- a/internal/cmd/controller/agentmanagement/root.go +++ b/internal/cmd/controller/agentmanagement/root.go @@ -20,7 +20,6 @@ type AgentManagement struct { // HelpFunc hides the global flag from the help output func (a *AgentManagement) HelpFunc(cmd *cobra.Command, strings []string) { - _ = cmd.Flags().MarkHidden("disable-gitops") _ = cmd.Flags().MarkHidden("disable-metrics") _ = cmd.Flags().MarkHidden("shard-id") _ = cmd.Flags().MarkHidden("shard-node-selector") diff --git a/internal/cmd/controller/cleanup/root.go b/internal/cmd/controller/cleanup/root.go index deacf06e34..a8194689b0 100644 --- a/internal/cmd/controller/cleanup/root.go +++ b/internal/cmd/controller/cleanup/root.go @@ -15,7 +15,6 @@ type CleanUp struct { // HelpFunc hides the global flags from the help output func (c *CleanUp) HelpFunc(cmd *cobra.Command, strings []string) { - _ = cmd.Flags().MarkHidden("disable-gitops") _ = cmd.Flags().MarkHidden("disable-metrics") _ = cmd.Flags().MarkHidden("shard-id") _ = cmd.Flags().MarkHidden("shard-node-selector") diff --git a/internal/cmd/controller/gitops/operator.go b/internal/cmd/controller/gitops/operator.go index 06b85c9d33..89461af9e2 100644 --- a/internal/cmd/controller/gitops/operator.go +++ b/internal/cmd/controller/gitops/operator.go @@ -66,7 +66,6 @@ func App(zo *zap.Options) *cobra.Command { // HelpFunc hides the global flag from the help output func (c *GitOperator) HelpFunc(cmd *cobra.Command, strings []string) { - _ = cmd.Flags().MarkHidden("disable-gitops") _ = cmd.Flags().MarkHidden("disable-metrics") _ = cmd.Flags().MarkHidden("shard-id") _ = cmd.Flags().MarkHidden("shard-node-selector")