Skip to content

Commit f26c37c

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

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
@@ -86,7 +86,6 @@ type config struct {
8686
enableLeaderElection bool
8787
probeAddr string
8888
cachePath string
89-
operatorControllerVersion bool
9089
systemNamespace string
9190
catalogdCasDir string
9291
pullCasDir string
@@ -120,7 +119,7 @@ var operatorControllerCmd = &cobra.Command{
120119

121120
var versionCommand = &cobra.Command{
122121
Use: "version",
123-
Short: "Prints version info of operator-controller",
122+
Short: "Prints operator-controller version information",
124123
Run: func(cmd *cobra.Command, args []string) {
125124
fmt.Println(version.String())
126125
},
@@ -140,7 +139,6 @@ func init() {
140139
"Enable leader election for controller manager. "+
141140
"Enabling this will ensure there is only one active controller manager.")
142141
flags.StringVar(&cfg.cachePath, "cache-path", "/var/cache", "The local directory path used for filesystem based caching")
143-
flags.BoolVar(&cfg.operatorControllerVersion, "version", false, "Prints operator-controller version information")
144142
flags.StringVar(&cfg.systemNamespace, "system-namespace", "", "Configures the namespace that gets used to deploy system resources.")
145143
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.")
146144

0 commit comments

Comments
 (0)