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/csi-resizer/main.go
+21-1
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,9 @@ import (
20
20
"context"
21
21
"flag"
22
22
"fmt"
23
+
"k8s.io/client-go/kubernetes"
24
+
"k8s.io/client-go/rest"
25
+
"k8s.io/client-go/tools/clientcmd"
23
26
"os"
24
27
"time"
25
28
@@ -54,6 +57,9 @@ var (
54
57
metricsAddress=flag.String("metrics-address", "", "The TCP network address where the prometheus metrics endpoint will listen (example: `:8080`). The default is empty string, which means metrics endpoint is disabled.")
55
58
metricsPath=flag.String("metrics-path", "/metrics", "The HTTP path where prometheus metrics will be exposed. Default is `/metrics`.")
56
59
60
+
kubeAPIQPS=flag.Float64("kube-api-qps", 5, "QPS to use while communicating with the kubernetes apiserver. Defaults to 5.0.")
61
+
kubeAPIBurst=flag.Int("kube-api-burst", 10, "Burst to use while communicating with the kubernetes apiserver. Defaults to 10.")
62
+
57
63
handleVolumeInUseError=flag.Bool("handle-volume-inuse-error", true, "Flag to turn on/off capability to handle volume in use error in resizer controller. Defaults to true if not set.")
0 commit comments