Fix two minor bugs in kubeadm

This commit is contained in:
aaa 2019-04-20 06:42:36 -04:00
parent 33f907a4df
commit a5b88f69e9
2 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ func (w *KubeWaiter) WaitForStaticPodHashChange(nodeName, component, previousHas
})
}
// getStaticSinglePodHash computes hashes for a single Static Pod resource
// getStaticPodSingleHash computes hashes for a single Static Pod resource
func getStaticPodSingleHash(client clientset.Interface, nodeName string, component string) (string, error) {
staticPodName := fmt.Sprintf("%s-%s", component, nodeName)

View File

@ -135,7 +135,7 @@ func getNodeRegistration(kubeconfigDir string, client clientset.Interface, nodeR
return nil
}
// getNodeNameFromConfig gets the node name from a kubelet config file
// getNodeNameFromKubeletConfig gets the node name from a kubelet config file
// TODO: in future we want to switch to a more canonical way for doing this e.g. by having this
// information in the local kubelet config.yaml
func getNodeNameFromKubeletConfig(kubeconfigDir string) (string, error) {