fix: Use correct names for kubelet config

With the change to bootkube, kubelet.conf has changed names and is now kubelet-kubeconfig.

Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
This commit is contained in:
Brad Beam
2019-10-10 22:05:12 -05:00
committed by Andrew Rynhard
parent 34599be9f2
commit d3f20db0aa
4 changed files with 6 additions and 5 deletions

View File

@@ -38,11 +38,9 @@ type Helper struct {
// NewHelper initializes and returns a Helper.
func NewHelper() (helper *Helper, err error) {
kubeconfig := "/etc/kubernetes/kubelet.conf"
var config *restclient.Config
config, err = clientcmd.BuildConfigFromFlags("", kubeconfig)
config, err = clientcmd.BuildConfigFromFlags("", constants.KubeletKubeconfig)
if err != nil {
return nil, err
}