mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Fix two minor bugs in kubeadm
This commit is contained in:
parent
33f907a4df
commit
a5b88f69e9
@ -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) {
|
func getStaticPodSingleHash(client clientset.Interface, nodeName string, component string) (string, error) {
|
||||||
|
|
||||||
staticPodName := fmt.Sprintf("%s-%s", component, nodeName)
|
staticPodName := fmt.Sprintf("%s-%s", component, nodeName)
|
||||||
|
@ -135,7 +135,7 @@ func getNodeRegistration(kubeconfigDir string, client clientset.Interface, nodeR
|
|||||||
return nil
|
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
|
// 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
|
// information in the local kubelet config.yaml
|
||||||
func getNodeNameFromKubeletConfig(kubeconfigDir string) (string, error) {
|
func getNodeNameFromKubeletConfig(kubeconfigDir string) (string, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user