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
// To avoid dependency on "k8s.io/client-go/rest" we are defining the
46
+
// constants being used from the package over here
47
+
// the names of the constants are the same in the package as well.
48
+
const (
49
+
DefaultQPSfloat32=5.0
50
+
DefaultBurstint=10
51
+
)
46
52
flag.IntVar(&controller.DefaultThreadsPerController, "threads-per-controller", controller.DefaultThreadsPerController, "Threads (goroutines) to create per controller")
47
53
namespace:=flag.String("namespace", corev1.NamespaceAll, "Namespace to restrict informer to. Optional, defaults to all namespaces.")
48
54
disableHighAvailability:=flag.Bool("disable-ha", false, "Whether to disable high-availability functionality for this component. This flag will be deprecated "+
@@ -64,11 +70,12 @@ func main() {
64
70
iferr:=opts.Images.Validate(); err!=nil {
65
71
log.Fatal(err)
66
72
}
73
+
67
74
ifcfg.QPS==0 {
68
-
cfg.QPS=2*rest.DefaultQPS
75
+
cfg.QPS=2*DefaultQPS
69
76
}
70
77
ifcfg.Burst==0 {
71
-
cfg.Burst=rest.DefaultBurst
78
+
cfg.Burst=DefaultBurst
72
79
}
73
80
// FIXME(vdemeester): this is here to not break current behavior
0 commit comments