@@ -453,8 +453,11 @@ func defaultKubeadmInitSpec(files []bootstrapv1.File) bootstrapv1.KubeadmConfigS
453453 },
454454 ClusterConfiguration : & bootstrapv1.ClusterConfiguration {
455455 ControllerManager : bootstrapv1.ControlPlaneComponent {
456- ExtraArgs : map [string ]string {
457- "cloud-provider" : "external" ,
456+ ExtraArgs : []bootstrapv1.Arg {
457+ {
458+ Name : "cloud-provider" ,
459+ Value : "external" ,
460+ },
458461 },
459462 },
460463 },
@@ -483,8 +486,11 @@ func ignitionKubeadmInitSpec(files []bootstrapv1.File) bootstrapv1.KubeadmConfig
483486 },
484487 ClusterConfiguration : & bootstrapv1.ClusterConfiguration {
485488 ControllerManager : bootstrapv1.ControlPlaneComponent {
486- ExtraArgs : map [string ]string {
487- "cloud-provider" : "external" ,
489+ ExtraArgs : []bootstrapv1.Arg {
490+ {
491+ Name : "cloud-provider" ,
492+ Value : "external" ,
493+ },
488494 },
489495 },
490496 },
@@ -558,8 +564,11 @@ func defaultNodeRegistrationOptions() bootstrapv1.NodeRegistrationOptions {
558564 return bootstrapv1.NodeRegistrationOptions {
559565 Name : "{{ local_hostname }}" ,
560566 CRISocket : "/var/run/containerd/containerd.sock" ,
561- KubeletExtraArgs : map [string ]string {
562- "cloud-provider" : "external" ,
567+ KubeletExtraArgs : []bootstrapv1.Arg {
568+ {
569+ Name : "cloud-provider" ,
570+ Value : "external" ,
571+ },
563572 },
564573 }
565574}
0 commit comments