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: cmd/gce-pd-csi-driver/main.go
+11-1
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,8 @@ var (
66
66
maxConcurrentFormatAndMount=flag.Int("max-concurrent-format-and-mount", 1, "If set then format and mount operations are serialized on each node. This is stronger than max-concurrent-format as it includes fsck and other mount operations")
67
67
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")
68
68
69
+
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 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")
70
+
69
71
versionstring
70
72
)
71
73
@@ -119,6 +121,14 @@ func handle() {
119
121
klog.Fatalf("Bad extra volume labels: %v", err.Error())
120
122
}
121
123
124
+
iflen(*extraTagsStr) >0&&!*runControllerService {
125
+
klog.Fatalf("Extra tags provided but not running controller")
0 commit comments