fs.DurationVar(&o.MinResyncPeriod.Duration,"min-resync-period",o.MinResyncPeriod.Duration,"The resync period in reflectors will be random between MinResyncPeriod and 2*MinResyncPeriod.")
o.Debugging.AddFlags(fss.FlagSet("debugging"))
fs.StringVar(&o.ContentType,"kube-api-content-type",o.ContentType,"Content type of requests sent to apiserver.")
genericfs:=fss.FlagSet("generic")
fs.Float32Var(&o.KubeAPIQPS,"kube-api-qps",o.KubeAPIQPS,"QPS to use while talking with kubernetes apiserver.")
genericfs.DurationVar(&o.MinResyncPeriod.Duration,"min-resync-period",o.MinResyncPeriod.Duration,"The resync period in reflectors will be random between MinResyncPeriod and 2*MinResyncPeriod.")
fs.Int32Var(&o.KubeAPIBurst,"kube-api-burst",o.KubeAPIBurst,"Burst to use while talking with kubernetes apiserver.")
genericfs.StringVar(&o.ClientConnection.ContentType,"kube-api-content-type",o.ClientConnection.ContentType,"Content type of requests sent to apiserver.")
fs.DurationVar(&o.ControllerStartInterval.Duration,"controller-start-interval",o.ControllerStartInterval.Duration,"Interval between starting controller managers.")
genericfs.Float32Var(&o.ClientConnection.QPS,"kube-api-qps",o.ClientConnection.QPS,"QPS to use while talking with kubernetes apiserver.")
genericfs.Int32Var(&o.ClientConnection.Burst,"kube-api-burst",o.ClientConnection.Burst,"Burst to use while talking with kubernetes apiserver.")
genericfs.DurationVar(&o.ControllerStartInterval.Duration,"controller-start-interval",o.ControllerStartInterval.Duration,"Interval between starting controller managers.")
// TODO: complete the work of the cloud-controller-manager (and possibly other consumers of this code) respecting the --controllers flag
@@ -62,6 +63,8 @@ func (o *KubeCloudSharedOptions) AddFlags(fs *pflag.FlagSet) {
...
@@ -62,6 +63,8 @@ func (o *KubeCloudSharedOptions) AddFlags(fs *pflag.FlagSet) {
return
return
}
}
o.CloudProvider.AddFlags(fs)
fs.StringVar(&o.ExternalCloudVolumePlugin,"external-cloud-volume-plugin",o.ExternalCloudVolumePlugin,"The plugin to use when cloud provider is set to external. Can be empty, should only be set when cloud-provider is external. Currently used to allow node and volume controllers to work for in tree cloud providers.")
fs.BoolVar(&o.UseServiceAccountCredentials,"use-service-account-credentials",o.UseServiceAccountCredentials,"If true, use individual service account credentials for each controller.")
fs.BoolVar(&o.UseServiceAccountCredentials,"use-service-account-credentials",o.UseServiceAccountCredentials,"If true, use individual service account credentials for each controller.")
fs.BoolVar(&o.AllowUntaggedCloud,"allow-untagged-cloud",false,"Allow the cluster to run without the cluster-id on cloud instances. This is a legacy mode of operation and a cluster-id will be required in the future.")
fs.BoolVar(&o.AllowUntaggedCloud,"allow-untagged-cloud",false,"Allow the cluster to run without the cluster-id on cloud instances. This is a legacy mode of operation and a cluster-id will be required in the future.")
fs.MarkDeprecated("allow-untagged-cloud","This flag is deprecated and will be removed in a future release. A cluster-id will be required on cloud instances.")
fs.MarkDeprecated("allow-untagged-cloud","This flag is deprecated and will be removed in a future release. A cluster-id will be required on cloud instances.")
...
@@ -86,8 +89,10 @@ func (o *KubeCloudSharedOptions) ApplyTo(cfg *componentconfig.KubeCloudSharedCon
...
@@ -86,8 +89,10 @@ func (o *KubeCloudSharedOptions) ApplyTo(cfg *componentconfig.KubeCloudSharedCon