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
@@ -60,6 +60,7 @@ See Github [Issues](https://github.com/kubernetes-sigs/gcp-compute-persistent-di
60
60
| labels |`key1=value1,key2=value2`|| Labels allow you to assign custom [GCE Disk labels](https://cloud.google.com/compute/docs/labeling-resources). |
61
61
| provisioned-iops-on-create | string (int64 format). Values typically between 10,000 and 120,000 || Indicates how many IOPS to provision for the disk. See the [Extreme persistent disk documentation](https://cloud.google.com/compute/docs/disks/extreme-persistent-disk) for details, including valid ranges for IOPS. |
62
62
| provisioned-throughput-on-create | string (int64 format). Values typically between 1 and 7,124 mb per second || Indicates how much throughput to provision for the disk. See the [hyperdisk documentation]([TBD](https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/hyperdisk#create)) for details, including valid ranges for throughput. |
63
+
| resource-tags |`<parent_id1>/<tag_key1>/<tag_value1>,<parent_id2>/<tag_key2>/<tag_value2>`|| Resource tags allow you to attach user-defined tags to each Compute Disk, Image and Snapshot. See [Tags overview](https://cloud.google.com/resource-manager/docs/tags/tags-overview), [Creating and managing tags](https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing). |
Copy file name to clipboardExpand all lines: cmd/gce-pd-csi-driver/main.go
+11-1
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,8 @@ var (
81
81
82
82
useInstanceAPIOnWaitForAttachDiskTypesFlag=flag.String("use-instance-api-to-poll-attachment-disk-types", "", "Comma separated list of disk types that should use instances.get API when polling for disk attach during ControllerPublish")
83
83
84
+
extraTagsStr=flag.String("extra-tags", "", "Extra tags to attach to each Compute Disk, Image, Snapshot created. It is a comma separated list of parent id, key and value like '<parent_id1>/<tag_key1>/<tag_value1>,...,<parent_idN>/<tag_keyN>/<tag_valueN>'. parent_id is the Organization or the Project ID or Project name where the tag key and the tag value resources exist. A maximum of 50 tags bindings is allowed for a resource. See https://cloud.google.com/resource-manager/docs/tags/tags-overview, https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing for details")
85
+
84
86
versionstring
85
87
)
86
88
@@ -153,6 +155,14 @@ func handle() {
153
155
klog.Fatalf("Bad extra volume labels: %v", err.Error())
154
156
}
155
157
158
+
iflen(*extraTagsStr) >0&&!*runControllerService {
159
+
klog.Fatalf("Extra tags provided but not running controller")
0 commit comments