mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
found another place to refactor
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
98835758c4
commit
a803ab5436
@ -12,8 +12,7 @@ export class ReplicaSetStore extends KubeObjectStore<ReplicaSet> {
|
|||||||
|
|
||||||
async loadMetrics(replicaSet: ReplicaSet) {
|
async loadMetrics(replicaSet: ReplicaSet) {
|
||||||
const pods = this.getChildPods(replicaSet);
|
const pods = this.getChildPods(replicaSet);
|
||||||
const metrics = await podsApi.getMetrics(pods, replicaSet.getNs(), "");
|
this.metrics = await podsApi.getMetrics(pods, replicaSet.getNs(), "");
|
||||||
return this.metrics = metrics;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getChildPods(replicaSet: ReplicaSet) {
|
getChildPods(replicaSet: ReplicaSet) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user