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
// Modern format (K8s 1.32.0+/Cilium v1.17+): Separate TCP and UDP entries
450
-
t.Log("Validating modern Cilium format - expecting separate TCP and UDP LocalRedirect entries")
451
-
require.True(t, tcpFound, "TCP LocalRedirect entry not found with frontend IP %s and backend IP %s on node %s", kubeDNSIP, nodeLocalDNSIP, selectedNode)
452
-
require.True(t, udpFound, "UDP LocalRedirect entry not found with frontend IP %s and backend IP %s on node %s", kubeDNSIP, nodeLocalDNSIP, selectedNode)
453
-
} else {
454
-
// Legacy format (K8s < 1.32.0/Cilium < v1.17): Just one LocalRedirect entry without protocol
455
-
t.Log("Validating legacy Cilium format - expecting single LocalRedirect entry without protocol")
456
-
require.False(t, useModernFormat, "Legacy LocalRedirect entry not found with frontend IP %s and backend IP %s on node %s", kubeDNSIP, nodeLocalDNSIP, selectedNode)
457
-
}
427
+
// Validate that we found either legacy format or modern format entries
428
+
t.Log("Validating LocalRedirect entries - accepting either legacy format or modern TCP/UDP format")
429
+
require.True(t, legacyFound|| (tcpFound&&udpFound), "Either legacy LocalRedirect entry OR both TCP and UDP entries must be found with frontend IP %s and backend IP %s on node %s", kubeDNSIP, nodeLocalDNSIP, selectedNode)
458
430
459
431
t.Logf("Cilium LRP List Output:\n%s", string(lrpOutput))
460
432
t.Logf("Cilium Service List Output:\n%s", string(serviceOutput))
0 commit comments