-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve kind get kubeconfig
and kind export kubeconfig
for multicluster
#2246
Comments
The first point has an open discussion / tracking issue and pull request that need following up on. @aojea has been active reviewing that. The second point I brought up in that discussion. |
Existing discussion: #2217 |
what if we use a env variable to modify the |
I guess we can, but people will start to depend on it obviously, I would've liked an answer for this before #2218 |
Having Environment-Variable based Flags without an corresponding CLI flag is no good UX, in my opinion. So I would consider implementing the From #2217 (comment):
|
This LGTM |
A few years later this still sounds great to me, any appetite to merge something like this if I put up a PR? |
we are doing this in cloud provider kind https://github.com/kubernetes-sigs/cloud-provider-kind/blob/680d0901472bed1c7d57deb5c6a0d454e1cef8c4/pkg/controller/controller.go#L58-L62 , how will it look like? |
Main motivation for getting this into |
I get the --internal flag but the one that says --docker to reach from host ... you can already do that with the existing one to localhost and the portmaps |
What would you like to be added:
kind export kubeconfig --internal
, matchingkind get kubeconfig --internal
. I don't personally care about this one, but it seems like we should be consistent.kind export kubeconfig --docker
(with a better name). This would export the result ofdocker inspect "${CLUSTER_NAME}
-control-plane" --format "{{ .NetworkSettings.Networks.kind.IPAddress }}" as the addressWhy is this needed:
The text was updated successfully, but these errors were encountered: