Skip to content

Commit 8081b51

Browse files
committed
Do not use beta API for hyperdisk in multi-writer mode.
1 parent cf8da66 commit 8081b51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gce-cloud-provider/compute/gce-compute.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ func (cloud *CloudProvider) insertRegionalDisk(
651651
gceAPIVersion = GCEAPIVersionV1
652652
)
653653

654-
if multiWriter {
654+
if multiWriter && !strings.Contains(params.DiskType, "hyperdisk") {
655655
gceAPIVersion = GCEAPIVersionBeta
656656
}
657657

@@ -778,7 +778,7 @@ func (cloud *CloudProvider) insertZonalDisk(
778778
opName string
779779
gceAPIVersion = GCEAPIVersionV1
780780
)
781-
if multiWriter {
781+
if multiWriter && !strings.Contains(params.DiskType, "hyperdisk") {
782782
gceAPIVersion = GCEAPIVersionBeta
783783
}
784784

0 commit comments

Comments
 (0)