-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
✨ Allow setting "UseExistingCluster" via environment #449
✨ Allow setting "UseExistingCluster" via environment #449
Conversation
/assign @DirectXMan12 |
pkg/envtest/server.go
Outdated
@@ -87,7 +89,7 @@ type Environment struct { | |||
// UseExisting indicates that this environments should use an | |||
// existing kubeconfig, instead of trying to stand up a new control plane. | |||
// This is useful in cases that need aggregated API servers and the like. | |||
UseExistingCluster bool | |||
UseExistingCluster *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.
IMO we don't have to use a boolean pointer. And this is actually a breaking change, since you change the type of a public struct.
079570f
to
31d8c66
Compare
/assign @mengqiy |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: adohe 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 |
I think we may want this to be a pointer -- this means you can never explicitly opt out of useexistingcluster. |
Discussed this with Solly a bit offline. |
support setting "UseExistingCluster" via OS Env, address #222