configure npd to run as daemonset on cos

This commit is contained in:
upodroid
2023-10-16 12:34:47 +01:00
parent 12dc19d46f
commit 011c65e17e
5 changed files with 22 additions and 25 deletions

View File

@@ -380,7 +380,7 @@ func getNpdPodStat(ctx context.Context, f *framework.Framework, nodeName string)
hasNpdPod := false
for _, pod := range summary.Pods {
if !strings.HasPrefix(pod.PodRef.Name, "npd") {
if !strings.HasPrefix(pod.PodRef.Name, "node-problem-detector") {
continue
}
cpuUsage = float64(*pod.CPU.UsageNanoCores) * 1e-9