@@ -38,6 +38,7 @@ import (
38
38
"github.com/openshift/cluster-image-registry-operator/pkg/envvar"
39
39
"github.com/openshift/cluster-image-registry-operator/pkg/storage/util"
40
40
"github.com/openshift/cluster-image-registry-operator/pkg/version"
41
+ powerUtils "github.com/ppc64le-cloud/powervs-utils"
41
42
)
42
43
43
44
const (
@@ -134,7 +135,7 @@ func (d *driver) UpdateEffectiveConfig() (*imageregistryv1.ImageRegistryConfigSt
134
135
clusterLocation = infra .Status .PlatformStatus .IBMCloud .Location
135
136
}
136
137
if infra .Status .PlatformStatus .Type == configapiv1 .PowerVSPlatformType && infra .Status .PlatformStatus .PowerVS != nil {
137
- clusterLocation , err = cosRegionForPowerVSRegion (infra .Status .PlatformStatus .PowerVS .Region )
138
+ clusterLocation , err = powerUtils . COSRegionForPowerVSRegion (infra .Status .PlatformStatus .PowerVS .Region )
138
139
if err != nil {
139
140
return nil , err
140
141
}
@@ -168,7 +169,7 @@ func (d *driver) CreateStorage(cr *imageregistryv1.Config) error {
168
169
d .Config .ResourceGroupName = infra .Status .PlatformStatus .IBMCloud .ResourceGroupName
169
170
}
170
171
if infra .Status .PlatformStatus .Type == configapiv1 .PowerVSPlatformType && infra .Status .PlatformStatus .PowerVS != nil {
171
- d .Config .Location , err = cosRegionForPowerVSRegion (infra .Status .PlatformStatus .PowerVS .Region )
172
+ d .Config .Location , err = powerUtils . COSRegionForPowerVSRegion (infra .Status .PlatformStatus .PowerVS .Region )
172
173
if err != nil {
173
174
return err
174
175
}
@@ -782,7 +783,7 @@ func (d *driver) getIBMCOSClient(serviceInstanceCRN string) (*s3.S3, error) {
782
783
IBMCOSLocation = infra .Status .PlatformStatus .IBMCloud .Location
783
784
}
784
785
if infra .Status .PlatformStatus .Type == configapiv1 .PowerVSPlatformType && infra .Status .PlatformStatus .PowerVS != nil {
785
- IBMCOSLocation , err = cosRegionForPowerVSRegion (infra .Status .PlatformStatus .PowerVS .Region )
786
+ IBMCOSLocation , err = powerUtils . COSRegionForPowerVSRegion (infra .Status .PlatformStatus .PowerVS .Region )
786
787
if err != nil {
787
788
return nil , err
788
789
}
0 commit comments