const testHostname …
const testNodeIP …
const testNodeIPAlt …
const testExternalIP …
const testNodeIPv6 …
const testNodeIPv6Alt …
const testExternalClient …
const testExternalClientBlocked …
var testNodeIPs …
func NewFakeProxier(ipFamily v1.IPFamily) (*knftables.Fake, *Proxier) { … }
var baseRules …
func TestOverallNFTablesRules(t *testing.T) { … }
func TestNoEndpointsReject(t *testing.T) { … }
func TestClusterIPGeneral(t *testing.T) { … }
func TestLoadBalancer(t *testing.T) { … }
func TestNodePorts(t *testing.T) { … }
func TestExternalTrafficPolicyLocal(t *testing.T) { … }
func TestExternalTrafficPolicyCluster(t *testing.T) { … }
func makeTestService(namespace, name string, svcFunc func(*v1.Service)) *v1.Service { … }
func addTestPort(array []v1.ServicePort, name string, protocol v1.Protocol, port, nodeport int32, targetPort int) []v1.ServicePort { … }
func TestBuildServiceMapAddRemove(t *testing.T) { … }
func TestBuildServiceMapServiceHeadless(t *testing.T) { … }
func TestBuildServiceMapServiceTypeExternalName(t *testing.T) { … }
func TestBuildServiceMapServiceUpdate(t *testing.T) { … }
func populateEndpointSlices(proxier *Proxier, allEndpointSlices ...*discovery.EndpointSlice) { … }
func makeTestEndpointSlice(namespace, name string, sliceNum int, epsFunc func(*discovery.EndpointSlice)) *discovery.EndpointSlice { … }
func makeNSN(namespace, name string) types.NamespacedName { … }
func makeServicePortName(ns, name, port string, protocol v1.Protocol) proxy.ServicePortName { … }
func makeServiceMap(proxier *Proxier, allServices ...*v1.Service) { … }
type endpointExpectation …
func checkEndpointExpectations(t *testing.T, tci int, newMap proxy.EndpointsMap, expected map[proxy.ServicePortName][]endpointExpectation) { … }
func TestUpdateEndpointsMap(t *testing.T) { … }
func TestHealthCheckNodePortWhenTerminating(t *testing.T) { … }
func TestInternalTrafficPolicy(t *testing.T) { … }
func TestTerminatingEndpointsTrafficPolicyLocal(t *testing.T) { … }
func TestTerminatingEndpointsTrafficPolicyCluster(t *testing.T) { … }
func TestInternalExternalMasquerade(t *testing.T) { … }
func TestSyncProxyRulesRepeated(t *testing.T) { … }
func TestNoEndpointsMetric(t *testing.T) { … }
func TestLoadBalancerIngressRouteTypeProxy(t *testing.T) { … }
func Test_servicePortChainNameBase(t *testing.T) { … }
func Test_servicePortEndpointChainNameBase(t *testing.T) { … }
func TestProxier_OnServiceCIDRsChanged(t *testing.T) { … }
func TestBadIPs(t *testing.T) { … }