Update kubeconfig when creating cluster #802
Labels
kind/design
Categorizes issue or PR as related to design.
kind/feature
Categorizes issue or PR as related to a new feature.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
What would you like to be added:
Would be neat that Kind automatically updates the
kubeconfig
of the user instead of creating a new one that should be imported manually.Some things to consider:
Patch and merge
One of the tricky part is that we have to patch the
kubeconfig
as it is provided bykubeadm
:kubeconfig
we have to rename theAuthInfo
to avoid collisions becausekubeadm
always uses the keykubernetes-admin
. For example we can suffix it with the name of the cluster.How to do that:
Use the official go client
Pros
go-client
already provides what we need to do thatCons
Kind
harder to depend on in test harnessesCopy types.go from
go-client
into theKind
sourcesSeems we only need the
Config
structure from theclient-go
project.Pros
Config
seems stable. De we really care to be not up to date ?Cons
Import
kubeconfig
asmap[string]interface{}
Pros
Cons
Make it the default or add a new option ?
Pros
Cons
related issues/PR: #113 #512 #520 #517 #790
The text was updated successfully, but these errors were encountered: