mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
kubeadm: Split out ClusterConfiguration from InitConfiguration
Trivial rebasement, fixed some broken tests, and inserted some TODOs: Rostislav M. Georgiev <rostislavg@vmware.com>
This commit is contained in:
committed by
Rostislav M. Georgiev
parent
405eecad6d
commit
5224551fa1
@@ -55,12 +55,15 @@ func SetupInitConfigurationFile(t *testing.T, tmpdir string, cfg *kubeadmapi.Ini
|
||||
cfgTemplate := template.Must(template.New("init").Parse(dedent.Dedent(`
|
||||
apiVersion: kubeadm.k8s.io/v1alpha3
|
||||
kind: InitConfiguration
|
||||
nodeRegistration:
|
||||
name: {{.NodeRegistration.Name}}
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1alpha3
|
||||
kind: ClusterConfiguration
|
||||
certificatesDir: {{.CertificatesDir}}
|
||||
api:
|
||||
advertiseAddress: {{.API.AdvertiseAddress}}
|
||||
bindPort: {{.API.BindPort}}
|
||||
nodeRegistration:
|
||||
name: {{.NodeRegistration.Name}}
|
||||
kubernetesVersion: v1.10.0
|
||||
`)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user