mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Fix resource-gatherer that never gathered resources from non-master machines
This commit is contained in:
parent
a24f03c3c9
commit
eb48166d5b
@ -281,10 +281,12 @@ func NewResourceUsageGatherer(c *client.Client, options ResourceGathererOptions)
|
|||||||
finished: false,
|
finished: false,
|
||||||
inKubemark: false,
|
inKubemark: false,
|
||||||
})
|
})
|
||||||
|
if options.masterOnly {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return &g, nil
|
return &g, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user