Skip to content

Commit

Permalink
Remove shard node selector from hidden flags (rancher#2764)
Browse files Browse the repository at this point in the history
That flag need not be hidden on cleanup and agent management commands,
which parent command (`fleetcontroller`) does not define it.
`fleetcontroller gitjob` defines it, where it therefore must not be
hidden either.
  • Loading branch information
weyfonk authored Aug 29, 2024
1 parent d375967 commit 849f739
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 @@ -22,7 +22,6 @@ type AgentManagement struct {
func (a *AgentManagement) HelpFunc(cmd *cobra.Command, strings []string) {
_ = cmd.Flags().MarkHidden("disable-metrics")
_ = cmd.Flags().MarkHidden("shard-id")
_ = cmd.Flags().MarkHidden("shard-node-selector")
cmd.Parent().HelpFunc()(cmd, strings)
}

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 @@ -17,7 +17,6 @@ type CleanUp struct {
func (c *CleanUp) HelpFunc(cmd *cobra.Command, strings []string) {
_ = cmd.Flags().MarkHidden("disable-metrics")
_ = cmd.Flags().MarkHidden("shard-id")
_ = cmd.Flags().MarkHidden("shard-node-selector")
cmd.Parent().HelpFunc()(cmd, strings)
}

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 @@ -68,7 +68,6 @@ func App(zo *zap.Options) *cobra.Command {
func (c *GitOperator) HelpFunc(cmd *cobra.Command, strings []string) {
_ = cmd.Flags().MarkHidden("disable-metrics")
_ = cmd.Flags().MarkHidden("shard-id")
_ = cmd.Flags().MarkHidden("shard-node-selector")
cmd.Parent().HelpFunc()(cmd, strings)
}

Expand Down

0 comments on commit 849f739

Please sign in to comment.