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/server/app/options/options.go
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,13 @@ type ProxyRunOptions struct {
70
70
// backend within the destCIDR. if it still can't find any backend,
71
71
// it will use the default backend manager to choose a random backend.
72
72
ProxyStrategiesstring
73
+
74
+
// This controls if we attempt to push onto a "full" transfer channel.
75
+
// However checking that the transfer channel is full is not safe.
76
+
// It violates our race condition checking. Adding locks around a potentially
77
+
// blocking call has its own problems, so it cannot easily be made race condition safe.
78
+
// The check is an "unlocked" read but is still use at your own peril.
79
+
WarnOnChannelLimitbool
73
80
}
74
81
75
82
func (o*ProxyRunOptions) Flags() *pflag.FlagSet {
@@ -100,6 +107,7 @@ func (o *ProxyRunOptions) Flags() *pflag.FlagSet {
100
107
flags.IntVar(&o.KubeconfigBurst, "kubeconfig-burst", o.KubeconfigBurst, "Maximum client burst (proxy server uses this client to authenticate agent tokens).")
flags.StringVar(&o.ProxyStrategies, "proxy-strategies", o.ProxyStrategies, "The list of proxy strategies used by the server to pick a backend/tunnel, available strategies are: default, destHost.")
110
+
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.")
103
111
returnflags
104
112
}
105
113
@@ -130,6 +138,7 @@ func (o *ProxyRunOptions) Print() {
130
138
klog.V(1).Infof("KubeconfigQPS set to %f.\n", o.KubeconfigQPS)
131
139
klog.V(1).Infof("KubeconfigBurst set to %d.\n", o.KubeconfigBurst)
132
140
klog.V(1).Infof("ProxyStrategies set to %q.\n", o.ProxyStrategies)
141
+
klog.V(1).Infof("WarnOnChannelLimit set to %t.\n", o.WarnOnChannelLimit)
0 commit comments