Skip to content

Commit

Permalink
Merge pull request #1685 from stbenjam/fix-metal
Browse files Browse the repository at this point in the history
Bug 1828106: cloudConfig: remove bare metal from platforms that require a cloud conifg
  • Loading branch information
openshift-merge-robot committed Apr 27, 2020
2 parents cecd834 + 7c6e1ba commit eb5731a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/controller/template/render.go
Expand Up @@ -504,7 +504,7 @@ func cloudConfigFlag(cfg RenderConfig) interface{} {
}
flag := "--cloud-config=/etc/kubernetes/cloud.conf"
switch cfg.Platform {
case platformAWS, platformAzure, platformBaremetal, platformGCP, platformOpenStack, platformOvirt, platformVSphere:
case platformAWS, platformAzure, platformGCP, platformOpenStack, platformOvirt, platformVSphere:
return flag
default:
return ""
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/sync.go
Expand Up @@ -102,7 +102,7 @@ func isCloudConfigRequired(infra *configv1.Infrastructure) bool {
if infra.Spec.CloudConfig.Name != "" {
return true
}
for _, platform := range []configv1.PlatformType{configv1.AzurePlatformType, configv1.BareMetalPlatformType, configv1.GCPPlatformType, configv1.OpenStackPlatformType,
for _, platform := range []configv1.PlatformType{configv1.AzurePlatformType, configv1.GCPPlatformType, configv1.OpenStackPlatformType,
configv1.OvirtPlatformType, configv1.VSpherePlatformType} {
if platform == infra.Status.PlatformStatus.Type {
return true
Expand Down

0 comments on commit eb5731a

Please sign in to comment.