You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CL contains changes to pass in hostname for zonal disk.insert API as a
part of location hint field. Code changes for regional disk API will be
part of future CLs.
Copy file name to clipboardexpand all lines: cmd/gce-pd-csi-driver/main.go
+17-1
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ import (
27
27
"strings"
28
28
"time"
29
29
30
+
"k8s.io/client-go/kubernetes"
31
+
"k8s.io/client-go/rest"
30
32
"k8s.io/klog/v2"
31
33
"k8s.io/utils/strings/slices"
32
34
@@ -72,6 +74,7 @@ var (
72
74
formatAndMountTimeout=flag.Duration("format-and-mount-timeout", 1*time.Minute, "The maximum duration of a format and mount operation before another such operation will be started. Used only if --serialize-format-and-mount")
73
75
fallbackRequisiteZonesFlag=flag.String("fallback-requisite-zones", "", "Comma separated list of requisite zones that will be used if there are not sufficient zones present in requisite topologies when provisioning a disk")
74
76
enableStoragePoolsFlag=flag.Bool("enable-storage-pools", false, "If set to true, the CSI Driver will allow volumes to be provisioned in Storage Pools")
77
+
enableVMLocationHint=flag.Bool("enable-vm-location-hint", false, "If set to true, the location hint field for create volume request will have hostname set")
75
78
76
79
multiZoneVolumeHandleDiskTypesFlag=flag.String("multi-zone-volume-handle-disk-types", "", "Comma separated list of allowed disk types that can use the multi-zone volumeHandle. Used only if --multi-zone-volume-handle-enable")
77
80
multiZoneVolumeHandleEnableFlag=flag.Bool("multi-zone-volume-handle-enable", false, "If set to true, the multi-zone volumeHandle feature will be enabled")
0 commit comments