@@ -44,7 +44,7 @@ type NodeProblemDetectorOptions struct {
4444 // ServerAddress is the address to bind the node problem detector server.
4545 ServerAddress string
4646 // QPS is the maximum QPS to the master from client.
47- QPS float64
47+ QPS float32
4848 // Burst is the maximum burst for throttle.
4949 Burst int
5050
@@ -129,8 +129,8 @@ func (npdo *NodeProblemDetectorOptions) AddFlags(fs *pflag.FlagSet) {
129129 20257 , "The port to bind the Prometheus scrape endpoint. Prometheus exporter is enabled by default at port 20257. Use 0 to disable." )
130130 fs .StringVar (& npdo .PrometheusServerAddress , "prometheus-address" ,
131131 "127.0.0.1" , "The address to bind the Prometheus scrape endpoint." )
132- flag . Float64Var (& npdo .QPS , "kube-api-qps" , 500 , "Maximum QPS to use while talking with Kubernetes API" )
133- flag .IntVar (& npdo .Burst , "kube-api-burst" , 500 , "Maximum burst for throttle while talking with Kubernetes API" )
132+ fs . Float32Var (& npdo .QPS , "kube-api-qps" , 500 , "Maximum QPS to use while talking with Kubernetes API" )
133+ fs .IntVar (& npdo .Burst , "kube-api-burst" , 500 , "Maximum burst for throttle while talking with Kubernetes API" )
134134 for _ , exporterName := range exporters .GetExporterNames () {
135135 exporterHandler := exporters .GetExporterHandlerOrDie (exporterName )
136136 exporterHandler .Options .SetFlags (fs )
0 commit comments