Skip to content

Commit f08569f

Browse files
committed
remove deprecated version flag handling
Signed-off-by: Omar Farag <[email protected]>
1 parent 6829fd2 commit f08569f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmd/operator-controller/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ type config struct {
8888
enableLeaderElection bool
8989
probeAddr string
9090
cachePath string
91-
operatorControllerVersion bool
9291
systemNamespace string
9392
catalogdCasDir string
9493
pullCasDir string
@@ -122,7 +121,7 @@ var operatorControllerCmd = &cobra.Command{
122121

123122
var versionCommand = &cobra.Command{
124123
Use: "version",
125-
Short: "Prints version info of operator-controller",
124+
Short: "Prints operator-controller version information",
126125
Run: func(cmd *cobra.Command, args []string) {
127126
fmt.Println(version.String())
128127
},
@@ -142,7 +141,6 @@ func init() {
142141
"Enable leader election for controller manager. "+
143142
"Enabling this will ensure there is only one active controller manager.")
144143
flags.StringVar(&cfg.cachePath, "cache-path", "/var/cache", "The local directory path used for filesystem based caching")
145-
flags.BoolVar(&cfg.operatorControllerVersion, "version", false, "Prints operator-controller version information")
146144
flags.StringVar(&cfg.systemNamespace, "system-namespace", "", "Configures the namespace that gets used to deploy system resources.")
147145
flags.StringVar(&cfg.globalPullSecret, "global-pull-secret", "", "The <namespace>/<name> of the global pull secret that is going to be used to pull bundle images.")
148146

0 commit comments

Comments
 (0)