File tree 1 file changed +10
-0
lines changed
pkg/gce-cloud-provider/compute
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -638,6 +638,11 @@ func (cloud *CloudProvider) insertRegionalDisk(
638
638
gceAPIVersion = GCEAPIVersionV1
639
639
)
640
640
641
+ // Use beta API for non-hyperdisk types in multi-writer mode.
642
+ if multiWriter && ! strings .Contains (params .DiskType , "hyperdisk" ) {
643
+ gceAPIVersion = GCEAPIVersionBeta
644
+ }
645
+
641
646
diskToCreate := & computev1.Disk {
642
647
Name : volKey .Name ,
643
648
SizeGb : common .BytesToGbRoundUp (capBytes ),
@@ -762,6 +767,11 @@ func (cloud *CloudProvider) insertZonalDisk(
762
767
gceAPIVersion = GCEAPIVersionV1
763
768
)
764
769
770
+ // Use beta API for non-hyperdisk types in multi-writer mode.
771
+ if multiWriter && ! strings .Contains (params .DiskType , "hyperdisk" ) {
772
+ gceAPIVersion = GCEAPIVersionBeta
773
+ }
774
+
765
775
diskToCreate := & computev1.Disk {
766
776
Name : volKey .Name ,
767
777
SizeGb : common .BytesToGbRoundUp (capBytes ),
You can’t perform that action at this time.
0 commit comments