Skip to content

Commit 5ff519f

Browse files
Merge pull request #1168 from mjturek/fix-validation
OCPBUGS-47503: Power VS: Revert #1076 to match new API validation
2 parents 21ef76f + fae0a92 commit 5ff519f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pkg/storage/ibmcos/ibmcos.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"net/url"
1010
"path/filepath"
1111
"reflect"
12-
"strings"
1312
"time"
1413

1514
"golang.org/x/net/http/httpproxy"
@@ -501,19 +500,19 @@ func (d *driver) setServiceEndpointOverrides(infra *configapiv1.Infrastructure)
501500
if infra.Status.PlatformStatus.PowerVS != nil && len(infra.Status.PlatformStatus.PowerVS.ServiceEndpoints) > 0 {
502501
for _, endpoint := range infra.Status.PlatformStatus.PowerVS.ServiceEndpoints {
503502
switch endpoint.Name {
504-
case strings.ToLower(string(configapiv1.IBMCloudServiceCOS)):
503+
case string(configapiv1.IBMCloudServiceCOS):
505504
klog.Infof("found override for ibmcloud cos endpoint: %s", endpoint.URL)
506505
d.cosServiceEndpoint = endpoint.URL
507-
case strings.ToLower(string(configapiv1.IBMCloudServiceIAM)):
506+
case string(configapiv1.IBMCloudServiceIAM):
508507
klog.Infof("found override for ibmcloud iam endpoint: %s", endpoint.URL)
509508
d.iamServiceEndpoint = endpoint.URL
510-
case strings.ToLower(string(configapiv1.IBMCloudServiceResourceController)):
509+
case string(configapiv1.IBMCloudServiceResourceController):
511510
klog.Infof("found override for ibmcloud resource controller endpoint: %s", endpoint.URL)
512511
d.rcServiceEndpoint = endpoint.URL
513-
case strings.ToLower(string(configapiv1.IBMCloudServiceResourceManager)):
512+
case string(configapiv1.IBMCloudServiceResourceManager):
514513
klog.Infof("found override for ibmcloud resource manager endpoint: %s", endpoint.URL)
515514
d.rmServiceEndpoint = endpoint.URL
516-
case strings.ToLower(string(configapiv1.IBMCloudServiceCIS)), strings.ToLower(string(configapiv1.IBMCloudServiceDNSServices)), strings.ToLower(string(configapiv1.IBMCloudServiceGlobalSearch)), strings.ToLower(string(configapiv1.IBMCloudServiceGlobalTagging)), strings.ToLower(string(configapiv1.IBMCloudServiceHyperProtect)), strings.ToLower(string(configapiv1.IBMCloudServiceKeyProtect)), strings.ToLower(string(configapiv1.IBMCloudServiceVPC)), strings.ToLower(string(configapiv1.IBMCloudServiceCOSConfig)), strings.ToLower(string(configapiv1.IBMCloudServiceGlobalCatalog)):
515+
case "Power", string(configapiv1.IBMCloudServiceCIS), string(configapiv1.IBMCloudServiceDNSServices), string(configapiv1.IBMCloudServiceGlobalSearch), string(configapiv1.IBMCloudServiceGlobalTagging), string(configapiv1.IBMCloudServiceHyperProtect), string(configapiv1.IBMCloudServiceKeyProtect), string(configapiv1.IBMCloudServiceVPC), string(configapiv1.IBMCloudServiceCOSConfig), string(configapiv1.IBMCloudServiceGlobalCatalog):
517516
klog.Infof("ignoring unused service endpoint: %s", endpoint.Name)
518517
default:
519518
klog.Infof("ignoring unknown service: %s", endpoint.Name)

0 commit comments

Comments
 (0)