-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename create-controller-token flag to enable-controller #1072
rename create-controller-token flag to enable-controller #1072
Conversation
@@ -147,7 +147,7 @@ func (c *Command) init() { | |||
c.flags.StringVar(&c.flagBindingRuleSelector, "acl-binding-rule-selector", "", | |||
"Selector string for connectInject ACL Binding Rule.") | |||
|
|||
c.flags.BoolVar(&c.flagCreateControllerPoliciesAndBindings, "create-controller-token", false, | |||
c.flags.BoolVar(&c.flagEnableController, "enable-controller", false, | |||
"Toggle for creating acl policies and rolebindings for the controller.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Toggle for creating acl policies and rolebindings for the controller.") | |
"Toggle for configuring ACLs for the controller.") |
@@ -251,7 +251,7 @@ spec: | |||
{{- end }} | |||
|
|||
{{- if .Values.controller.enabled }} | |||
-create-controller-token=true \ | |||
-enable-controller=true \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about -controller=true
? It seems similar to patterns we have for partitions.
@@ -47,7 +47,7 @@ type Command struct { | |||
flagInjectAuthMethodHost string | |||
flagBindingRuleSelector string | |||
|
|||
flagCreateControllerPoliciesAndBindings bool | |||
flagEnableController bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can still stay the same though. Just the name of the flag can be -controller
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we usually try to match the var name with flag name. IMO it's kind of nice to know what the flag name is by looking at the command var as you're reading through the code.
16eaf74
to
5bee0db
Compare
e50a4d2
to
fc88732
Compare
Since
server-acl-init
no longer creates a controller token rename the flag to-enable-controller
.Changes proposed in this PR:
-create-controller-token
flag to-enable-controller
forserver-acl-init
.How I've tested this PR:
unit tests still pass
How I expect reviewers to test this PR:
Checklist: