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/options/controller_options.go
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -16,23 +16,23 @@ limitations under the License.
16
16
17
17
package options
18
18
19
-
//DONE
20
-
21
-
//// ControllerOptions contains options and configuration settings for the controller service.
22
-
//type ControllerOptions struct {
23
-
// // ExtraTags is a map of tags that will be attached to each dynamically provisioned
24
-
// // resource.
25
-
// ExtraTags map[string]string
26
-
// //// ExtraVolumeTags is a map of tags that will be attached to each dynamically provisioned
27
-
// //// volume.
28
-
// //// DEPRECATED: Use ExtraTags instead.
29
-
// //ExtraVolumeTags map[string]string
30
-
// // ID of the kubernetes cluster.
31
-
// KubernetesClusterID string
32
-
//}
19
+
/*
20
+
// ControllerOptions contains options and configuration settings for the controller service.
21
+
type ControllerOptions struct {
22
+
// ExtraTags is a map of tags that will be attached to each dynamically provisioned
23
+
// resource.
24
+
ExtraTags map[string]string
25
+
//// ExtraVolumeTags is a map of tags that will be attached to each dynamically provisioned
26
+
//// volume.
27
+
//// DEPRECATED: Use ExtraTags instead.
28
+
//ExtraVolumeTags map[string]string
29
+
// ID of the kubernetes cluster.
30
+
KubernetesClusterID string
31
+
}
33
32
34
-
//func (s *ControllerOptions) AddFlags(fs *flag.FlagSet) {
35
-
// //fs.Var(cliflag.NewMapStringString(&s.ExtraTags), "extra-tags", "Extra tags to attach to each dynamically provisioned resource. It is a comma separated list of key value pairs like '<key1>=<value1>,<key2>=<value2>'")
36
-
// //fs.Var(cliflag.NewMapStringString(&s.ExtraVolumeTags), "extra-volume-tags", "DEPRECATED: Please use --extra-tags instead. Extra volume tags to attach to each dynamically provisioned volume. It is a comma separated list of key value pairs like '<key1>=<value1>,<key2>=<value2>'")
37
-
// //fs.StringVar(&s.KubernetesClusterID, "k8s-tag-cluster-id", "", "ID of the Kubernetes cluster used for tagging provisioned EBS volumes (optional).")
38
-
//}
33
+
func (s *ControllerOptions) AddFlags(fs *flag.FlagSet) {
34
+
fs.Var(cliflag.NewMapStringString(&s.ExtraTags), "extra-tags", "Extra tags to attach to each dynamically provisioned resource. It is a comma separated list of key value pairs like '<key1>=<value1>,<key2>=<value2>'")
35
+
fs.Var(cliflag.NewMapStringString(&s.ExtraVolumeTags), "extra-volume-tags", "DEPRECATED: Please use --extra-tags instead. Extra volume tags to attach to each dynamically provisioned volume. It is a comma separated list of key value pairs like '<key1>=<value1>,<key2>=<value2>'")
36
+
fs.StringVar(&s.KubernetesClusterID, "k8s-tag-cluster-id", "", "ID of the Kubernetes cluster used for tagging provisioned EBS volumes (optional).")
0 commit comments