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
+23-61Lines changed: 23 additions & 61 deletions
Original file line number
Diff line number
Diff line change
@@ -62,33 +62,16 @@ import (
62
62
63
63
var (
64
64
master=flag.String("master", "", "Master URL to build a client config from. Either this or kubeconfig needs to be set if the provisioner is being run out of cluster.")
65
-
kubeConfig=flag.String("kubeconfig", "", "Absolute path to the kubeconfig")
66
65
resyncPeriod=flag.Duration("resync-period", time.Minute*10, "Resync period for cache")
67
66
workers=flag.Int("workers", 10, "Concurrency to process multiple resize requests")
68
67
69
68
extraModifyMetadata=flag.Bool("extra-modify-metadata", false, "If set, add pv/pvc metadata to plugin modify requests as parameters.")
70
69
71
-
csiAddress=flag.String("csi-address", "/run/csi/socket", "Address of the CSI driver socket.")
72
-
timeout=flag.Duration("timeout", 10*time.Second, "Timeout for waiting for CSI driver socket.")
timeout=flag.Duration("timeout", 10*time.Second, "Timeout for waiting for CSI driver socket.")
75
71
76
72
retryIntervalStart=flag.Duration("retry-interval-start", time.Second, "Initial retry interval of failed volume resize. It exponentially increases with each failure, up to retry-interval-max.")
77
73
retryIntervalMax=flag.Duration("retry-interval-max", 5*time.Minute, "Maximum retry interval of failed volume resize.")
leaderElectionNamespace=flag.String("leader-election-namespace", "", "Namespace where the leader election resource lives. Defaults to the pod namespace if not set.")
81
-
leaderElectionLeaseDuration=flag.Duration("leader-election-lease-duration", 15*time.Second, "Duration, in seconds, that non-leader candidates will wait to force acquire leadership. Defaults to 15 seconds.")
82
-
leaderElectionRenewDeadline=flag.Duration("leader-election-renew-deadline", 10*time.Second, "Duration, in seconds, that the acting leader will retry refreshing leadership before giving up. Defaults to 10 seconds.")
83
-
leaderElectionRetryPeriod=flag.Duration("leader-election-retry-period", 5*time.Second, "Duration, in seconds, the LeaderElector clients should wait between tries of actions. Defaults to 5 seconds.")
84
-
85
-
metricsAddress=flag.String("metrics-address", "", "(deprecated) The TCP network address where the prometheus metrics endpoint will listen (example: `:8080`). The default is empty string, which means metrics endpoint is disabled. Only one of `--metrics-address` and `--http-endpoint` can be set.")
86
-
httpEndpoint=flag.String("http-endpoint", "", "The TCP network address where the HTTP server for diagnostics, including metrics and leader election health check, will listen (example: `:8080`). The default is empty string, which means the server is disabled. Only one of `--metrics-address` and `--http-endpoint` can be set.")
87
-
metricsPath=flag.String("metrics-path", "/metrics", "The HTTP path where prometheus metrics will be exposed. Default is `/metrics`.")
88
-
89
-
kubeAPIQPS=flag.Float64("kube-api-qps", 5, "QPS to use while communicating with the kubernetes apiserver. Defaults to 5.0.")
90
-
kubeAPIBurst=flag.Int("kube-api-burst", 10, "Burst to use while communicating with the kubernetes apiserver. Defaults to 10.")
91
-
92
75
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