mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
remove the unnecessary comments in tryRegisterWithAPIServer for externalID removed in PR#61877
This commit is contained in:
parent
9e0c4a6095
commit
ffbd7b22b3
@ -79,9 +79,7 @@ func (kl *Kubelet) registerWithAPIServer() {
|
|||||||
// the API server, returning a boolean indicating whether the attempt was
|
// the API server, returning a boolean indicating whether the attempt was
|
||||||
// successful. If a node with the same name already exists, it reconciles the
|
// successful. If a node with the same name already exists, it reconciles the
|
||||||
// value of the annotation for controller-managed attach-detach of attachable
|
// value of the annotation for controller-managed attach-detach of attachable
|
||||||
// persistent volumes for the node. If a node of the same name exists but has
|
// persistent volumes for the node.
|
||||||
// a different externalID value, it attempts to delete that node so that a
|
|
||||||
// later attempt can recreate it.
|
|
||||||
func (kl *Kubelet) tryRegisterWithAPIServer(node *v1.Node) bool {
|
func (kl *Kubelet) tryRegisterWithAPIServer(node *v1.Node) bool {
|
||||||
_, err := kl.kubeClient.CoreV1().Nodes().Create(node)
|
_, err := kl.kubeClient.CoreV1().Nodes().Create(node)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user