mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
commit
5e90834abe
@ -108,7 +108,7 @@ func getNodeRegistration(kubeconfigDir string, client clientset.Interface, nodeR
|
|||||||
// gets the corresponding node and retrives attributes stored there.
|
// gets the corresponding node and retrives attributes stored there.
|
||||||
node, err := client.CoreV1().Nodes().Get(nodeName, metav1.GetOptions{})
|
node, err := client.CoreV1().Nodes().Get(nodeName, metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "faild to get corresponding node")
|
return errors.Wrap(err, "failed to get corresponding node")
|
||||||
}
|
}
|
||||||
|
|
||||||
criSocket, ok := node.ObjectMeta.Annotations[constants.AnnotationKubeadmCRISocket]
|
criSocket, ok := node.ObjectMeta.Annotations[constants.AnnotationKubeadmCRISocket]
|
||||||
|
Loading…
Reference in New Issue
Block a user