Skip to content
Snippets Groups Projects

Cherry-pick CERN patches for OKD 4.10 release

Merged Jack Henschel requested to merge cern-4.10-dev into cern-4.10
4 files
+ 42
0
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 4
0
@@ -57,6 +57,10 @@ type Images struct {
@@ -57,6 +57,10 @@ type Images struct {
func getProviderFromInfrastructure(infra *configv1.Infrastructure) (configv1.PlatformType, error) {
func getProviderFromInfrastructure(infra *configv1.Infrastructure) (configv1.PlatformType, error) {
if infra.Status.PlatformStatus != nil {
if infra.Status.PlatformStatus != nil {
if infra.Status.PlatformStatus.Type != "" {
if infra.Status.PlatformStatus.Type != "" {
 
if infra.Status.PlatformStatus.Type == configv1.NonePlatformType {
 
// Map cloud platform 'None' to 'OpenStack' for CERN Cloud
 
return configv1.OpenStackPlatformType, nil
 
}
return infra.Status.PlatformStatus.Type, nil
return infra.Status.PlatformStatus.Type, nil
}
}
}
}
Loading