-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
envtest: export DefaultKubeAPIServerFlags & make flags configurable #165
envtest: export DefaultKubeAPIServerFlags & make flags configurable #165
Conversation
I'd prefer we didn't break backwards compat here, since it should be fairly easy to work around it. Perhaps just make |
bca5e1b
to
d281307
Compare
d281307
to
6d08efb
Compare
Yeah, that's much better. Removed the constructor and exported |
// TODO: create test framework interface to append flag to default flags. | ||
var defaultKubeAPIServerFlags = []string{ | ||
// DefaultKubeAPIServerFlags are default flags necessary to bring up apiserver. | ||
var DefaultKubeAPIServerFlags = []string{ |
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.
Is there a need to export this anymore given that we have made KubeAPIServerFlag
configurable (change below) ?
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.
yes, because we still want to allow people to make use of the default args if they just want to append.
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.
Thanks for the clarification.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: darkowlzz, DirectXMan12 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 |
6d08efb
to
2245c64
Compare
Rebased. |
2245c64
to
d04f63b
Compare
Cyclomatic Complexity went above 10 because of the if statement in |
/lgtm |
@darkowlzz can you rebase, please (or let us know if you need us to step in and rebase) |
This change exports DefaultKubeAPIServerFlags, allowing a user to append the default flags with other custom flags and set it to Environment.KubeAPIServerFlags. If KubeAPIServerFlags is not set, DefaultKubeAPIServerFlags is used when the API server starts.
d04f63b
to
d0ead81
Compare
Rebased! |
/lgtm |
Thanks! |
…PIServerFlags envtest: export DefaultKubeAPIServerFlags & make flags configurable
This change exports DefaultKubeAPIServerFlags, allowing a user to
append the default flags with other custom flags and set it to
Environment.KubeAPIServerFlags.
If KubeAPIServerFlags is not set, DefaultKubeAPIServerFlags is used when
the API server starts.
Fixes #112