Merge pull request #91539 from andrewsykim/fix-cloud-provider-deprecation

only log cloud provider deprecation warning for in-tree components
This commit is contained in:
Kubernetes Prow Robot
2020-07-10 00:59:48 -07:00
committed by GitHub
4 changed files with 21 additions and 12 deletions

View File

@@ -41,6 +41,8 @@ func createCloudProvider(cloudProvider string, externalCloudVolumePlugin string,
}
cloud, err = cloudprovider.InitCloudProvider(externalCloudVolumePlugin, cloudConfigFile)
} else {
cloudprovider.DeprecationWarningForProvider(cloudProvider)
loopMode = IncludeCloudLoops
cloud, err = cloudprovider.InitCloudProvider(cloudProvider, cloudConfigFile)
}