Skip to content

Commit e530116

Browse files
authored
Manage RoleBinding for rbac enabled cluster (#197)
1 parent e28c13f commit e530116

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func NewCmdRun(version string) *cobra.Command {
8787
cmd.Flags().StringVar(&masterURL, "master", masterURL, "The address of the Kubernetes API server (overrides any value in kubeconfig)")
8888
cmd.Flags().StringVar(&kubeconfigPath, "kubeconfig", kubeconfigPath, "Path to kubeconfig file with authorization information (the master location is set by the master flag).")
8989
cmd.Flags().StringVar(&address, "address", address, "Address to listen on for web interface and telemetry.")
90+
cmd.Flags().BoolVar(&opts.EnableRBAC, "rbac", opts.EnableRBAC, "Enable RBAC for operator")
9091
cmd.Flags().StringVar(&scratchDir, "scratch-dir", scratchDir, "Directory used to store temporary files. Use an `emptyDir` in Kubernetes.")
9192
cmd.Flags().DurationVar(&opts.ResyncPeriod, "resync-period", opts.ResyncPeriod, "If non-zero, will re-list this often. Otherwise, re-list will be delayed aslong as possible (until the upstream source closes the watch or times out.")
9293

0 commit comments

Comments
 (0)