mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Set resource-gathering and probe-duration period for kubemark
This commit is contained in:
parent
c7e7b9284c
commit
1ae56bbe2b
@ -215,10 +215,12 @@ func NewResourceUsageGatherer(c clientset.Interface, options ResourceGathererOpt
|
|||||||
if options.InKubemark {
|
if options.InKubemark {
|
||||||
g.workerWg.Add(1)
|
g.workerWg.Add(1)
|
||||||
g.workers = append(g.workers, resourceGatherWorker{
|
g.workers = append(g.workers, resourceGatherWorker{
|
||||||
inKubemark: true,
|
inKubemark: true,
|
||||||
stopCh: g.stopCh,
|
stopCh: g.stopCh,
|
||||||
wg: &g.workerWg,
|
wg: &g.workerWg,
|
||||||
finished: false,
|
finished: false,
|
||||||
|
resourceDataGatheringPeriod: options.ResourceDataGatheringPeriod,
|
||||||
|
probeDuration: options.ProbeDuration,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// Tracks kube-system pods if no valid PodList is passed in.
|
// Tracks kube-system pods if no valid PodList is passed in.
|
||||||
|
Loading…
Reference in New Issue
Block a user