Skip to content

Commit 11c0ec3

Browse files
committed
Remove unused flag
1 parent 2e149be commit 11c0ec3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/agent/app/options/options.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ type GrpcProxyAgentOptions struct {
8585
// Providing a label selector enables updating the server count by counting the
8686
// number of valid leases matching the selector.
8787
ServerLeaseSelector string
88-
// Initial fallback server count to use if proxy server lease listing fails.
89-
ServerCount uint
9088
// Lease informer resync period.
9189
InformerResync time.Duration
9290
// Path to kubeconfig (used by kubernetes client for lease listing)
@@ -133,7 +131,6 @@ func (o *GrpcProxyAgentOptions) Flags() *pflag.FlagSet {
133131
flags.BoolVar(&o.WarnOnChannelLimit, "warn-on-channel-limit", o.WarnOnChannelLimit, "Turns on a warning if the system is going to push to a full channel. The check involves an unsafe read.")
134132
flags.BoolVar(&o.SyncForever, "sync-forever", o.SyncForever, "If true, the agent continues syncing, in order to support server count changes.")
135133
flags.IntVar(&o.XfrChannelSize, "xfr-channel-size", 150, "Set the size of the channel for transferring data between the agent and the proxy server.")
136-
flags.UintVar(&o.ServerCount, "server-count", o.ServerCount, "Static server count, also used as fallback server count if proxy server lease listing fails.")
137134
flags.StringVar(&o.ServerLeaseSelector, "server-lease-selector", o.ServerLeaseSelector, "Providing a label selector enables updating the server count by counting the number of valid leases matching the selector.")
138135
flags.DurationVar(&o.InformerResync, "informer-resync", o.InformerResync, "Lease informer resync period")
139136
flags.StringVar(&o.KubeconfigPath, "kubeconfig", o.KubeconfigPath, "absolute path to the kubeconfig file (used with agent-namespace, agent-service-account, authentication-audience).")

0 commit comments

Comments
 (0)