Skip to content

Commit

Permalink
Merge pull request #29 from atiratree/add-dummy-flag
Browse files Browse the repository at this point in the history
[WRKLDS-730] add dummy flags needed for a switch to library-go server and ControlerCommand
  • Loading branch information
openshift-merge-robot committed Jul 20, 2023
2 parents 38d9ec8 + 36213e7 commit 5710699
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cmd/route-controller-manager/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import (

type RouteControllerManager struct {
ConfigFilePath string
Kubeconfig string
Namespace string
Output io.Writer
}

Expand Down Expand Up @@ -67,6 +69,10 @@ func NewRouteControllerManagerCommand(name string, out, errout io.Writer, ctx co
cmd.MarkFlagFilename("config", "yaml", "yml")
cmd.MarkFlagRequired("config")

// dummy flags needed for a switch to library-go server and ControlerCommand
flags.StringVar(&options.Kubeconfig, "kubeconfig", options.Kubeconfig, "dummy flag required for a switch to library-go server and ControlerCommand")
flags.StringVar(&options.Namespace, "namespace", options.Namespace, "dummy flag required for a switch to library-go server and ControlerCommand")

return cmd
}

Expand Down

0 comments on commit 5710699

Please sign in to comment.