You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check.LogError("Pod %q is missing from current state", originalPod.String())
478
+
nonCompliantObjects=append(nonCompliantObjects,
479
+
testhelper.NewReportObject("Pod is missing from current state", testhelper.PodType, false).AddField(testhelper.PodName, originalPod.Name).AddField(testhelper.Namespace, originalPod.Namespace))
480
+
} else {
481
+
check.LogInfo("Pod %q is present in current state", originalPod.String())
482
+
compliantObjects=append(compliantObjects,
483
+
testhelper.NewReportObject("Pod is present in current state", testhelper.PodType, true).AddField(testhelper.PodName, originalPod.Name).AddField(testhelper.Namespace, originalPod.Namespace))
484
+
}
485
+
}
486
+
487
+
// Check for extra pods (in current but not in original)
check.LogError("Extra pod %s/%s found in current state", currentPod.Namespace, currentPod.Name)
493
+
nonCompliantObjects=append(nonCompliantObjects,
494
+
testhelper.NewReportObject("Extra pod found in current state", testhelper.PodType, false).AddField(testhelper.PodName, currentPod.Name).AddField(testhelper.Namespace, currentPod.Namespace))
0 commit comments