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
299aa5d7
Unverified
Commit
299aa5d7
authored
Apr 14, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 14, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76505 from rosti/fix-join-cri-detection
kubeadm: Don't error out on join with --cri-socket override
parents
8c4651cc
2d4307db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cluster.go
cmd/kubeadm/app/util/config/cluster.go
+9
-0
No files found.
cmd/kubeadm/app/util/config/cluster.go
View file @
299aa5d7
...
...
@@ -93,6 +93,15 @@ func getInitConfigurationFromCluster(kubeconfigDir string, client clientset.Inte
if
err
:=
getAPIEndpoint
(
configMap
.
Data
,
initcfg
.
NodeRegistration
.
Name
,
&
initcfg
.
LocalAPIEndpoint
);
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"failed to getAPIEndpoint"
)
}
}
else
{
// In the case where newControlPlane is true we don't go through getNodeRegistration() and initcfg.NodeRegistration.CRISocket is empty.
// This forces DetectCRISocket() to be called later on, and if there is more than one CRI installed on the system, it will error out,
// while asking for the user to provide an override for the CRI socket. Even if the user provides an override, the call to
// DetectCRISocket() can happen too early and thus ignore it (while still erroring out).
// However, if newControlPlane == true, initcfg.NodeRegistration is not used at all and it's overwritten later on.
// Thus it's necessary to supply some default value, that will avoid the call to DetectCRISocket() and as
// initcfg.NodeRegistration is discarded, setting whatever value here is harmless.
initcfg
.
NodeRegistration
.
CRISocket
=
constants
.
DefaultDockerCRISocket
}
return
initcfg
,
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