Fix mispelled key name in kubeconfig 07/113707/1
authorIgor D.C <igor.duarte.cardoso@intel.com>
Thu, 8 Oct 2020 23:50:55 +0000 (23:50 +0000)
committerIgor D.C <igor.duarte.cardoso@intel.com>
Thu, 8 Oct 2020 23:55:37 +0000 (23:55 +0000)
commitedaf4416c5002254b60199a0b9710ebb23ccdf7b
tree6a46621b028f1de815a8cc31948ec41a2788e40a
parent8ad373936c2438a06fd02202c507e3ceadbacea6
Fix mispelled key name in kubeconfig

Fixes the mispelled "currentcontext" with the right key name
"current-context" which was introduced as a regression with or
before the latest version of the kubeconfig code (probably a bad
search/replace).

This 1-character long bug was preventing the generated kubeconfigs
from being correctly interpreted by kubectl. Thus, kubectl couldn't
set any context of the kubeconfig as the current context.

Observable output before this fix:
$ kubectl get pods
The connection to the server localhost:8080 was refused - did you
specify the right host or port?

Issue-ID: MULTICLOUD-1143
Change-Id: I617d1e20b7be2567729b84d3746b22e4ceaf8b9d
Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
src/dcm/pkg/module/cluster.go