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
7cbb9995
Unverified
Commit
7cbb9995
authored
Oct 20, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #70023 from SataQiu/fix-20181019
clean up redundant code for kubeadm join
parents
a6e27321
41937c21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
join.go
cmd/kubeadm/app/cmd/join.go
+0
-5
No files found.
cmd/kubeadm/app/cmd/join.go
View file @
7cbb9995
...
@@ -447,11 +447,6 @@ func (j *Join) CheckIfReadyForAdditionalControlPlane(initConfiguration *kubeadma
...
@@ -447,11 +447,6 @@ func (j *Join) CheckIfReadyForAdditionalControlPlane(initConfiguration *kubeadma
// PrepareForHostingControlPlane makes all preparation activities require for a node hosting a new control plane instance
// PrepareForHostingControlPlane makes all preparation activities require for a node hosting a new control plane instance
func
(
j
*
Join
)
PrepareForHostingControlPlane
(
initConfiguration
*
kubeadmapi
.
InitConfiguration
)
error
{
func
(
j
*
Join
)
PrepareForHostingControlPlane
(
initConfiguration
*
kubeadmapi
.
InitConfiguration
)
error
{
// Creates the admin kubeconfig file for the admin and for kubeadm itself.
if
err
:=
kubeconfigphase
.
CreateAdminKubeConfigFile
(
kubeadmconstants
.
KubernetesDir
,
initConfiguration
);
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"error generating the admin kubeconfig file"
)
}
// Generate missing certificates (if any)
// Generate missing certificates (if any)
if
err
:=
certsphase
.
CreatePKIAssets
(
initConfiguration
);
err
!=
nil
{
if
err
:=
certsphase
.
CreatePKIAssets
(
initConfiguration
);
err
!=
nil
{
return
err
return
err
...
...
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