some improvements

This commit is contained in:
ston1th 2021-12-08 22:12:44 +01:00
commit 312dcd577c
10 changed files with 367 additions and 379 deletions

View file

@ -52,10 +52,10 @@ func cloudInitializer(config *config.CompletedConfig) cloudprovider.Interface {
// initialize cloud provider with the cloud provider name and config file provided
cloud, err := cloudprovider.InitCloudProvider(providerName, cloudConfig.CloudConfigFile)
if err != nil {
klog.Fatalf("Cloud provider could not be initialized: %v", err)
klog.Fatalf("cloud provider could not be initialized: %v", err)
}
if cloud == nil {
klog.Fatalf("Cloud provider is nil")
klog.Fatalf("cloud provider is nil")
}
if !cloud.HasClusterID() {