fmt.Printf("<cmd/init> cloud provider %q initialized for the control plane. Remember to set the same cloud provider flag on the kubelet.\n",cfg.CloudProvider)
fmt.Printf("cloud provider %q initialized for the control plane. Remember to set the same cloud provider flag on the kubelet.\n",cfg.CloudProvider)
}else{
returnfmt.Errorf("<cmd/init> cloud provider %q is not supported, you can use any of %v, or leave it unset.\n",cfg.CloudProvider,cloudprovider.CloudProviders())
returnnil,fmt.Errorf("cloud provider %q is not supported, you can use any of %v, or leave it unset.\n",cfg.CloudProvider,cloudprovider.CloudProviders())
}
}
return&Init{cfg:cfg},nil
}
// RunInit executes master node provisioning, including certificates, needed static pod manifests, etc.