-
Notifications
You must be signed in to change notification settings - Fork 187
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
make lease label and lease namespace configurable #670
make lease label and lease namespace configurable #670
Conversation
@@ -321,6 +330,13 @@ func (o *ProxyRunOptions) Validate() error { | |||
} | |||
} | |||
} | |||
// Validate labels provided. | |||
if o.EnableLeaseController { | |||
_, err := util.ParseLabels(o.LeaseLabel) |
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.
rather than parsing the labels more than once, would it make sense to store the result of the parsed label at this point?
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.
Didn't want to pollute the ProxyRunOptions
struct with another label field, especially we are using once in validate and once to setup the server.
Nice change. I would like to see the Split vs SplitN change. The rest we can treat as feature requests. |
Signed-off-by: Imran Pochi <[email protected]>
391b98a
to
ea0a0d3
Compare
/approve |
@cheftako I believe this is good to get merged. |
}, | ||
shouldError: false, | ||
}, | ||
{ |
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.
Would be nice to have a test case like "foo=var=baz"
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheftako, ipochi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Currently the lease controller system has hard coded values for lease namespace and lease labels.
This PR adds cli flags to make those values configurable.