mirror of
https://github.com/lingble/talos.git
synced 2025-11-28 20:03:48 +00:00
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:
committed by
Andrew Rynhard
parent
34599be9f2
commit
d3f20db0aa
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user