File tree Expand file tree Collapse file tree 2 files changed +0
-25
lines changed
cmd/kubeadm/app/phases/kubeconfig Expand file tree Collapse file tree 2 files changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -59,21 +59,6 @@ type kubeConfigSpec struct {
59
59
ClientCertAuth * clientCertAuth
60
60
}
61
61
62
- // CreateInitKubeConfigFiles will create and write to disk all kubeconfig files necessary in the kubeadm init phase
63
- // to establish the control plane, including also the admin kubeconfig file.
64
- // If kubeconfig files already exists, they are used only if evaluated equal; otherwise an error is returned.
65
- func CreateInitKubeConfigFiles (outDir string , cfg * kubeadmapi.InitConfiguration ) error {
66
- klog .V (1 ).Infoln ("creating all kubeconfig files" )
67
- return createKubeConfigFiles (
68
- outDir ,
69
- cfg ,
70
- kubeadmconstants .AdminKubeConfigFileName ,
71
- kubeadmconstants .KubeletKubeConfigFileName ,
72
- kubeadmconstants .ControllerManagerKubeConfigFileName ,
73
- kubeadmconstants .SchedulerKubeConfigFileName ,
74
- )
75
- }
76
-
77
62
// CreateJoinControlPlaneKubeConfigFiles will create and write to disk the kubeconfig files required by kubeadm
78
63
// join --control-plane workflow, plus the admin kubeconfig file used by the administrator and kubeadm itself; the
79
64
// kubelet.conf file must not be created because it will be created and signed by the kubelet TLS bootstrap process.
Original file line number Diff line number Diff line change @@ -289,16 +289,6 @@ func TestCreateKubeconfigFilesAndWrappers(t *testing.T) {
289
289
},
290
290
expectedError : true ,
291
291
},
292
- { // Test CreateInitKubeConfigFiles (wrapper to createKubeConfigFile)
293
- name : "CreateInitKubeConfigFiles" ,
294
- createKubeConfigFunction : CreateInitKubeConfigFiles ,
295
- expectedFiles : []string {
296
- kubeadmconstants .AdminKubeConfigFileName ,
297
- kubeadmconstants .KubeletKubeConfigFileName ,
298
- kubeadmconstants .ControllerManagerKubeConfigFileName ,
299
- kubeadmconstants .SchedulerKubeConfigFileName ,
300
- },
301
- },
302
292
{ // Test CreateJoinControlPlaneKubeConfigFiles (wrapper to createKubeConfigFile)
303
293
name : "CreateJoinControlPlaneKubeConfigFiles" ,
304
294
createKubeConfigFunction : CreateJoinControlPlaneKubeConfigFiles ,
You can’t perform that action at this time.
0 commit comments