mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-20 04:36:41 +00:00
feature: add QPS Burst flags
This commit is contained in:
@@ -74,7 +74,8 @@ func NewClientOrDie(npdo *options.NodeProblemDetectorOptions) Client {
|
||||
}
|
||||
|
||||
cfg.UserAgent = fmt.Sprintf("%s/%s", filepath.Base(os.Args[0]), version.Version())
|
||||
// TODO(random-liu): Set QPS Limit
|
||||
cfg.QPS = float32(npdo.QPS)
|
||||
cfg.Burst = npdo.Burst
|
||||
c.client = clientset.NewForConfigOrDie(cfg).CoreV1()
|
||||
c.nodeName = npdo.NodeName
|
||||
c.eventNamespace = npdo.EventNamespace
|
||||
|
||||
Reference in New Issue
Block a user