Merge f9bb2d9ef4 into 4c7716be2c
commit
2e36a63375
|
|
@ -157,8 +157,8 @@ func configIssues(cfg *api.Config, contextName string, address string) []error {
|
||||||
|
|
||||||
// populateCerts retains certs already defined in kubeconfig or sets default ones for those missing.
|
// populateCerts retains certs already defined in kubeconfig or sets default ones for those missing.
|
||||||
func populateCerts(kcs *Settings, cfg api.Config, contextName string) {
|
func populateCerts(kcs *Settings, cfg api.Config, contextName string) {
|
||||||
lp := localpath.Profile(contextName)
|
gp := filepath.ToSlash(localpath.MiniPath())
|
||||||
gp := localpath.MiniPath()
|
lp := filepath.ToSlash(localpath.Profile(contextName))
|
||||||
|
|
||||||
kcs.CertificateAuthority = path.Join(gp, "ca.crt")
|
kcs.CertificateAuthority = path.Join(gp, "ca.crt")
|
||||||
if cluster, ok := cfg.Clusters[contextName]; ok {
|
if cluster, ok := cfg.Clusters[contextName]; ok {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue