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
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ See Github [Issues](https://github.com/kubernetes-sigs/gcp-compute-persistent-di
68
68
| type |`pd-ssd` OR `pd-standard`|`pd-standard`| Type allows you to choose between standard Persistent Disks or Solid State Drive Persistent Disks |
69
69
| replication-type |`none` OR `regional-pd`|`none`| Replication type allows you to choose between Zonal Persistent Disks or Regional Persistent Disks |
70
70
| disk-encryption-kms-key | Fully qualified resource identifier for the key to use to encrypt new disks. | Empty string. | Encrypt disk using Customer Managed Encryption Key (CMEK). See [GKE Docs](https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek#create_a_cmek_protected_attached_disk) for details. |
71
+
| labels |`key1=value1,key2=value2`|| Labels allow you to assign custom [GCE Disk labels](https://cloud.google.com/compute/docs/labeling-resources). |
runControllerService=flag.Bool("run-controller-service", true, "If set to false then the CSI driver does not activate its controller service (default: true)")
38
38
runNodeService=flag.Bool("run-node-service", true, "If set to false then the CSI driver does not activate its node service (default: true)")
39
-
extraVolumeLabelsmap[string]string
39
+
extraVolumeLabelsStr=flag.String("extra-labels", "", "Extra labels to attach to each PD created. It is a comma separated list of key value pairs like '<key1>=<value1>,<key2>=<value2>'. See https://cloud.google.com/compute/docs/labeling-resources for details")
40
40
versionstring
41
41
)
42
42
@@ -55,7 +55,6 @@ func init() {
55
55
}
56
56
57
57
funcmain() {
58
-
flag.Var(cliflag.NewMapStringString(&extraVolumeLabels), "extra-labels", "Extra labels to attach to each PD created. It is a comma separated list of key value pairs like '<key1>=<value1>,<key2>=<value2>'")
59
58
flag.Parse()
60
59
rand.Seed(time.Now().UnixNano())
61
60
handle()
@@ -70,6 +69,14 @@ func handle() {
70
69
}
71
70
klog.V(2).Infof("Driver vendor version %v", version)
returnfmt.Errorf("label value %q is invalid (should start with lowercase letter / lowercase letter, digit, _ and - chars are allowed / 1-63 characters", key)
0 commit comments