Skip to content

Commit 7258cdc

Browse files
hamzyopenshift-cherrypick-robot
authored and
openshift-cherrypick-robot
committed
PowerVS: cos eu-es hack
If the COS location to use is different than the VPC region, then we need to rename the bucket name to correctly download the image.
1 parent d765baa commit 7258cdc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/asset/manifests/powervs/cluster.go

+5
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ func GenerateClusterAssets(installConfig *installconfig.InstallConfig, clusterID
212212
File: asset.File{Filename: "02_powervs-cluster.yaml"},
213213
})
214214

215+
if vpcRegion != cosRegion {
216+
logrus.Debugf("GenerateClusterAssets: vpcRegion(%s) is different than cosRegion(%s), cosRegion. Overriding bucket name", vpcRegion, cosRegion)
217+
bucket = fmt.Sprintf("rhcos-powervs-images-%s", cosRegion)
218+
}
219+
215220
powerVSImage = &capibm.IBMPowerVSImage{
216221
TypeMeta: metav1.TypeMeta{
217222
APIVersion: capibm.GroupVersion.String(),

0 commit comments

Comments
 (0)