Skip to content

Commit 001523e

Browse files
committed
OCPBUGS-65681: Oops, I forgot IBMCloud
In HIVE-2302 / #2729 we rearranged the way installmanager figures out which platform-specific ConfigureCreds() function to call, but forgot to include IBMCloud in the lookup table. (BareMetal is there, which we don't use, and which is probably why this was missed, as it made the number of entries correct.)
1 parent acea5e9 commit 001523e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/controller/utils/credentials.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,18 @@ func GetClusterPlatform(cd *hivev1.ClusterDeployment) string {
141141
return constants.PlatformAWS
142142
case cd.Spec.Platform.Azure != nil:
143143
return constants.PlatformAzure
144+
case cd.Spec.Platform.BareMetal != nil:
145+
return constants.PlatformBaremetal
144146
case cd.Spec.Platform.GCP != nil:
145147
return constants.PlatformGCP
148+
case cd.Spec.Platform.IBMCloud != nil:
149+
return constants.PlatformIBMCloud
150+
case cd.Spec.Platform.Nutanix != nil:
151+
return constants.PlatformNutanix
146152
case cd.Spec.Platform.OpenStack != nil:
147153
return constants.PlatformOpenStack
148154
case cd.Spec.Platform.VSphere != nil:
149155
return constants.PlatformVSphere
150-
case cd.Spec.Platform.BareMetal != nil:
151-
return constants.PlatformBaremetal
152-
case cd.Spec.Platform.Nutanix != nil:
153-
return constants.PlatformNutanix
154156
}
155157
return constants.PlatformUnknown
156158
}

0 commit comments

Comments
 (0)