@@ -36,7 +36,6 @@ type KubeCloudSharedOptions struct {
AllocateNodeCIDRsbool
CIDRAllocatorTypestring
ConfigureCloudRoutesbool
ServiceAccountKeyFilestring
NodeSyncPeriodmetav1.Duration
}
...
...
@@ -74,9 +73,6 @@ func (o *KubeCloudSharedOptions) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&o.CIDRAllocatorType,"cidr-allocator-type","RangeAllocator","Type of CIDR allocator to use")
fs.BoolVar(&o.ConfigureCloudRoutes,"configure-cloud-routes",true,"Should CIDRs allocated by allocate-node-cidrs be configured on the cloud provider.")
// TODO: remove --service-account-private-key-file 6 months after 1.8 is released (~1.10)
fs.StringVar(&o.ServiceAccountKeyFile,"service-account-private-key-file",o.ServiceAccountKeyFile,"Filename containing a PEM-encoded private RSA or ECDSA key used to sign service account tokens.")
fs.MarkDeprecated("service-account-private-key-file","This flag is currently no-op and will be deleted.")
// SAControllerOptions holds the ServiceAccountController options.
typeSAControllerOptionsstruct{
ServiceAccountKeyFilestring
ConcurrentSATokenSyncsint32
RootCAFilestring
}
...
...
@@ -33,6 +34,7 @@ func (o *SAControllerOptions) AddFlags(fs *pflag.FlagSet) {
return
}
fs.StringVar(&o.ServiceAccountKeyFile,"service-account-private-key-file",o.ServiceAccountKeyFile,"Filename containing a PEM-encoded private RSA or ECDSA key used to sign service account tokens.")
fs.Int32Var(&o.ConcurrentSATokenSyncs,"concurrent-serviceaccount-token-syncs",o.ConcurrentSATokenSyncs,"The number of service account token objects that are allowed to sync concurrently. Larger number = more responsive token generation, but more CPU (and network) load")
fs.StringVar(&o.RootCAFile,"root-ca-file",o.RootCAFile,"If set, this root certificate authority will be included in service account's token secret. This must be a valid PEM-encoded CA bundle.")
}
...
...
@@ -43,6 +45,7 @@ func (o *SAControllerOptions) ApplyTo(cfg *componentconfig.SAControllerConfigura