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
d94c5bac
Commit
d94c5bac
authored
Apr 19, 2019
by
fabriziopandini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubeadm-cleanup-unused-func
parent
61fa0fd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
kubeconfig.go
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
+0
-15
kubeconfig_test.go
cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go
+0
-10
No files found.
cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go
View file @
d94c5bac
...
...
@@ -59,21 +59,6 @@ type kubeConfigSpec struct {
ClientCertAuth
*
clientCertAuth
}
// CreateInitKubeConfigFiles will create and write to disk all kubeconfig files necessary in the kubeadm init phase
// to establish the control plane, including also the admin kubeconfig file.
// If kubeconfig files already exists, they are used only if evaluated equal; otherwise an error is returned.
func
CreateInitKubeConfigFiles
(
outDir
string
,
cfg
*
kubeadmapi
.
InitConfiguration
)
error
{
klog
.
V
(
1
)
.
Infoln
(
"creating all kubeconfig files"
)
return
createKubeConfigFiles
(
outDir
,
cfg
,
kubeadmconstants
.
AdminKubeConfigFileName
,
kubeadmconstants
.
KubeletKubeConfigFileName
,
kubeadmconstants
.
ControllerManagerKubeConfigFileName
,
kubeadmconstants
.
SchedulerKubeConfigFileName
,
)
}
// CreateJoinControlPlaneKubeConfigFiles will create and write to disk the kubeconfig files required by kubeadm
// join --control-plane workflow, plus the admin kubeconfig file used by the administrator and kubeadm itself; the
// kubelet.conf file must not be created because it will be created and signed by the kubelet TLS bootstrap process.
...
...
cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go
View file @
d94c5bac
...
...
@@ -289,16 +289,6 @@ func TestCreateKubeconfigFilesAndWrappers(t *testing.T) {
},
expectedError
:
true
,
},
{
// Test CreateInitKubeConfigFiles (wrapper to createKubeConfigFile)
name
:
"CreateInitKubeConfigFiles"
,
createKubeConfigFunction
:
CreateInitKubeConfigFiles
,
expectedFiles
:
[]
string
{
kubeadmconstants
.
AdminKubeConfigFileName
,
kubeadmconstants
.
KubeletKubeConfigFileName
,
kubeadmconstants
.
ControllerManagerKubeConfigFileName
,
kubeadmconstants
.
SchedulerKubeConfigFileName
,
},
},
{
// Test CreateJoinControlPlaneKubeConfigFiles (wrapper to createKubeConfigFile)
name
:
"CreateJoinControlPlaneKubeConfigFiles"
,
createKubeConfigFunction
:
CreateJoinControlPlaneKubeConfigFiles
,
...
...
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