Skip to content

Commit 8c6396f

Browse files
committed
Add check DNS operator
1 parent 483b9b6 commit 8c6396f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/monitortests/network/legacynetworkmonitortests/networking.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ func getPlatformType(clientConfig *rest.Config) (configv1.PlatformType, error) {
5151
}
5252

5353
func testPodSandboxCreation(events monitorapi.Intervals, clientConfig *rest.Config) []*junitapi.JUnitTestCase {
54-
// This test is looking for the "FailedCreatePodSandBox" event which is generated by the kubelet when a pod cannot be started.
5554
const testName = "[sig-network] pods should successfully create sandboxes"
5655
// we can further refine this signal by subdividing different failure modes if it is pertinent. Right now I'm seeing
5756
// 1. error reading container (probably exited) json message: EOF
@@ -81,7 +80,8 @@ func testPodSandboxCreation(events monitorapi.Intervals, clientConfig *rest.Conf
8180
}
8281
isNetwork := ev.Locator.Keys[monitorapi.LocatorClusterOperatorKey] == "network"
8382
isMCO := ev.Locator.Keys[monitorapi.LocatorClusterOperatorKey] == "machine-config"
84-
if isNetwork || isMCO {
83+
isDNS := ev.Locator.Keys[monitorapi.LocatorClusterOperatorKey] == "dns"
84+
if isNetwork || isMCO || isDNS {
8585
return true
8686
}
8787
return false

0 commit comments

Comments
 (0)