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/agent/app/options/options.go
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ type GrpcProxyAgentOptions struct {
84
84
85
85
// Providing a label selector enables updating the server count by counting the
86
86
// number of valid leases matching the selector.
87
-
ServerCountLeaseSelectorstring
87
+
ServerLeaseSelectorstring
88
88
// Initial fallback server count to use if proxy server lease listing fails.
89
89
ServerCountuint
90
90
// Lease informer resync period.
@@ -134,7 +134,7 @@ func (o *GrpcProxyAgentOptions) Flags() *pflag.FlagSet {
134
134
flags.BoolVar(&o.SyncForever, "sync-forever", o.SyncForever, "If true, the agent continues syncing, in order to support server count changes.")
135
135
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
136
flags.UintVar(&o.ServerCount, "server-count", o.ServerCount, "Static server count, also used as fallback server count if proxy server lease listing fails.")
137
-
flags.StringVar(&o.ServerCountLeaseSelector, "server-count-lease-selector", o.ServerCountLeaseSelector, "Providing a label selector enables updating the server count by counting the number of valid leases matching the selector.")
137
+
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.")
flags.StringVar(&o.KubeconfigPath, "kubeconfig", o.KubeconfigPath, "absolute path to the kubeconfig file (used with agent-namespace, agent-service-account, authentication-audience).")
140
140
returnflags
@@ -213,8 +213,8 @@ func (o *GrpcProxyAgentOptions) Validate() error {
0 commit comments