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
5ffe0549
Unverified
Commit
5ffe0549
authored
Dec 28, 2018
by
Kubernetes Prow Robot
Committed by
GitHub
Dec 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72153 from ereslibre/automated-cherry-pick-of-#72030-upstream-release-1.13
Automated cherry pick of #72030: Fix race condition when joining nodes
parents
faa246de
becb2b75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
join.go
cmd/kubeadm/app/cmd/join.go
+4
-2
No files found.
cmd/kubeadm/app/cmd/join.go
View file @
5ffe0549
...
...
@@ -586,10 +586,12 @@ func (j *Join) PostInstallControlPlane(initConfiguration *kubeadmapi.InitConfigu
func
waitForTLSBootstrappedClient
()
error
{
fmt
.
Println
(
"[tlsbootstrap] Waiting for the kubelet to perform the TLS Bootstrap..."
)
kubeletKubeConfig
:=
filepath
.
Join
(
kubeadmconstants
.
KubernetesDir
,
kubeadmconstants
.
KubeletKubeConfigFileName
)
// Loop on every falsy return. Return with an error if raised. Exit successfully if true is returned.
return
wait
.
PollImmediate
(
kubeadmconstants
.
APICallRetryInterval
,
kubeadmconstants
.
TLSBootstrapTimeout
,
func
()
(
bool
,
error
)
{
_
,
err
:=
os
.
Stat
(
kubeletKubeConfig
)
// Check that we can create a client set out of the kubelet kubeconfig. This ensures not
// only that the kubeconfig file exists, but that other files required by it also exist (like
// client certificate and key)
_
,
err
:=
kubeconfigutil
.
ClientSetFromFile
(
kubeadmconstants
.
GetKubeletKubeConfigPath
())
return
(
err
==
nil
),
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