1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

Do not collect the metrics when the metrics server is not enabled

This commit is contained in:
Jan Chaloupka
2021-12-10 15:38:17 +01:00
parent e0f086ff85
commit 901a16ecbc
16 changed files with 36 additions and 10 deletions

View File

@@ -203,6 +203,7 @@ func runPodLifetimeStrategy(
evictCritical,
false,
false,
false,
),
getPodsAssignedToNode,
)
@@ -1341,5 +1342,6 @@ func initPodEvictorOrFail(t *testing.T, clientSet clientset.Interface, nodes []*
false,
false,
false,
false,
)
}