[FIX] Properly handle host/hostIP cases for kubeconfig (#500, @fabricev)
This commit is contained in:
parent
9cc7915c55
commit
83da516bc6
@ -62,12 +62,12 @@ func TransformSimpleToClusterConfig(ctx context.Context, runtime runtimes.Runtim
|
||||
}
|
||||
|
||||
// -> API
|
||||
if simpleConfig.ExposeAPI.Host == "" {
|
||||
simpleConfig.ExposeAPI.Host = k3d.DefaultAPIHost
|
||||
}
|
||||
if simpleConfig.ExposeAPI.HostIP == "" {
|
||||
simpleConfig.ExposeAPI.HostIP = k3d.DefaultAPIHost
|
||||
}
|
||||
if simpleConfig.ExposeAPI.Host == "" {
|
||||
simpleConfig.ExposeAPI.Host = simpleConfig.ExposeAPI.HostIP
|
||||
}
|
||||
|
||||
kubeAPIExposureOpts := &k3d.ExposureOpts{
|
||||
Host: simpleConfig.ExposeAPI.Host,
|
||||
|
Loading…
Reference in New Issue
Block a user