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
// Verify both TCP and UDP LocalRedirect entries exist
421
-
require.True(t, tcpFound, "TCP LocalRedirect entry not found with frontend IP %s and backend IP %s on node %s", kubeDNSIP, nodeLocalDNSIP, selectedNode)
422
-
require.True(t, udpFound, "UDP LocalRedirect entry not found with frontend IP %s and backend IP %s on node %s", kubeDNSIP, nodeLocalDNSIP, selectedNode)
449
+
// Validate based on determined format
450
+
ifuseModernFormat {
451
+
// Modern format (K8s 1.32.0+/Cilium v1.17+): Separate TCP and UDP entries
452
+
t.Log("Validating modern Cilium format - expecting separate TCP and UDP LocalRedirect entries")
453
+
require.True(t, tcpFound, "TCP LocalRedirect entry not found with frontend IP %s and backend IP %s on node %s", kubeDNSIP, nodeLocalDNSIP, selectedNode)
454
+
require.True(t, udpFound, "UDP LocalRedirect entry not found with frontend IP %s and backend IP %s on node %s", kubeDNSIP, nodeLocalDNSIP, selectedNode)
455
+
} else {
456
+
// Legacy format (K8s < 1.32.0/Cilium < v1.17): Just one LocalRedirect entry without protocol
457
+
t.Log("Validating legacy Cilium format - expecting single LocalRedirect entry without protocol")
458
+
require.False(t, useModernFormat, "Legacy LocalRedirect entry not found with frontend IP %s and backend IP %s on node %s", kubeDNSIP, nodeLocalDNSIP, selectedNode)
459
+
}
423
460
424
461
t.Logf("Cilium LRP List Output:\n%s", string(lrpOutput))
425
462
t.Logf("Cilium Service List Output:\n%s", string(serviceOutput))
0 commit comments