fix testcase, extend TestCloudProvider for accounting Azure
@@ -41,6 +41,10 @@ func TestCloudProvider(t *testing.T) {
platform: configv1.OpenStackPlatformType,
featureGate: newFeatures("cluster", "CustomNoUpgrade", []string{cloudprovider.ExternalCloudProviderFeature}, nil),
res: "external",
+ }, {
+ platform: configv1.AzurePlatformType,
+ featureGate: newFeatures("cluster", "CustomNoUpgrade", []string{cloudprovider.ExternalCloudProviderFeature}, nil),
+ res: "external",
}, {
platform: configv1.GCPPlatformType,
featureGate: newFeatures("cluster", "CustomNoUpgrade", []string{cloudprovider.ExternalCloudProviderFeature}, nil),
@@ -161,7 +165,7 @@ func TestCloudConfigFlag(t *testing.T) {
option = a
`,
featureGate: newFeatures("cluster", "CustomNoUpgrade", []string{cloudprovider.ExternalCloudProviderFeature}, nil),
- res: "--cloud-config=/etc/kubernetes/cloud.conf",
+ res: "",
}, {
platform: configv1.OpenStackPlatformType,
content: `
