Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ffbd7b22
Commit
ffbd7b22
authored
Jul 25, 2018
by
stewart-yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the unnecessary comments in tryRegisterWithAPIServer for externalID removed in PR#61877
parent
9e0c4a60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
kubelet_node_status.go
pkg/kubelet/kubelet_node_status.go
+1
-3
No files found.
pkg/kubelet/kubelet_node_status.go
View file @
ffbd7b22
...
@@ -79,9 +79,7 @@ func (kl *Kubelet) registerWithAPIServer() {
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment