Skip to content

Commit

Permalink
Remove leftover disable-gitops mentions (#2762)
Browse files Browse the repository at this point in the history
That flag was removed when merging the `GitRepo` and gitOps controllers.
  • Loading branch information
weyfonk authored Aug 26, 2024
1 parent d1fd7ac commit 2870c67
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion internal/cmd/controller/agentmanagement/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion internal/cmd/controller/cleanup/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion internal/cmd/controller/gitops/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2870c67

Please sign in to comment.