kubernetes/pkg/proxy
Dan Winship cdf934d5bc Remove redundant iptables/nftables conntrack cleanup tests
The iptables and nftables proxy backends had 2 unit tests
(TestDeleteEndpointConnections and TestProxierDeleteNodePortStaleUDP)
that were effectively testing that:

  - If the proxy saw various Service/EndpointSlice events this would
    result in specific changes to the service/endpoints trackers, AND

  - If the service/endpoints trackers changed in those specific ways
    this would result in specific UpdateServiceMapResult and
    UpdateEndpointsMapResult values being generated, AND

  - If you passed those specific UpdateServiceMapResult and
    UpdateEndpointsMapResult values to conntrack.CleanStaleEntries it
    would make specific calls to the lower-level conntrack methods,
    AND

  - If you called the lower-level conntrack methods with those
    specific arguments, it would result in specific executions of the
    conntrack binary, mixed with a specific number of klog
    invocations.

This... is not a good unit test. We already test the change tracker
behavior in other unit tests, and we already tested the
Update{Service,Endpoints}MapResult behavior in the pkg/proxy unit
tests, and we already tested the conntrack exec behavior in
pkg/proxy/conntrack/conntrack_test.go, and we now test the
CleanStaleEntries behavior in pkg/proxy/conntrack/cleanup_test.go. So
there is no need to try to test the top-to-bottom behavior as a "unit
test".
2024-01-15 13:08:52 -05:00
..
apis Simplify nftables/proxier.go by removing localhost nodeport support 2023-10-31 17:33:53 -04:00
config Use k8s.io/utils/ptr in pkg/proxy (#121154) 2023-10-26 20:56:39 +02:00
conntrack Remove redundant iptables/nftables conntrack cleanup tests 2024-01-15 13:08:52 -05:00
healthcheck pkg/proxy: dual stack health checker 2023-10-16 16:11:18 +05:30
iptables Remove redundant iptables/nftables conntrack cleanup tests 2024-01-15 13:08:52 -05:00
ipvs kube-proxy: LoadBalancerSourceRanges as *net.IPNet 2024-01-09 09:17:56 +01:00
kubemark Remove --use-real-proxier support from kubemark 2023-11-09 06:52:10 -05:00
metaproxier Migrate cmd/proxy/app and pkg/proxy/meta_proxier to structured logging (#104928) 2021-09-14 20:50:40 -07:00
metrics aggregate kube-proxy metrics 2023-07-16 11:47:19 +00:00
nftables Remove redundant iptables/nftables conntrack cleanup tests 2024-01-15 13:08:52 -05:00
util kube-proxy: LoadBalancerSourceRanges as *net.IPNet 2024-01-09 09:17:56 +01:00
winkernel Merge pull request #120104 from togettoyou/cleanup_endpoints 2023-10-28 06:18:26 +02:00
doc.go
endpoint.go Split ServicePort/Endpoint from ServiceChangeTracker/EndpointsChangeTracker 2023-12-21 09:38:25 -05:00
endpointschangetracker_test.go Rename cache's endpointSliceInfo/endpointInfo to endpointSliceData/endpointData 2023-12-21 09:44:08 -05:00
endpointschangetracker.go Fix a set type 2023-12-21 09:44:08 -05:00
endpointslicecache_test.go Rename cache's endpointSliceInfo/endpointInfo to endpointSliceData/endpointData 2023-12-21 09:44:08 -05:00
endpointslicecache.go Rename cache's endpointSliceInfo/endpointInfo to endpointSliceData/endpointData 2023-12-21 09:44:08 -05:00
node_test.go Improve logging on kube-proxy exit 2023-09-11 00:50:29 +08:00
node.go Merge pull request #118146 from aroradaman/fix/proxy-healthzserver 2023-10-16 21:19:25 +02:00
OWNERS Add more labels (esp. area/kube-proxy) to sig-network OWNERS 2023-03-18 11:29:38 -04:00
servicechangetracker_test.go kube-proxy: LoadBalancerSourceRanges as *net.IPNet 2024-01-09 09:17:56 +01:00
servicechangetracker.go Update some change tracker doc comments 2023-12-21 09:44:08 -05:00
serviceport.go kube-proxy: LoadBalancerSourceRanges as *net.IPNet 2024-01-09 09:17:56 +01:00
topology_test.go Unexport BaseEndpointInfo fields, fix getter names 2023-10-25 09:00:46 -04:00
topology.go Unexport BaseEndpointInfo fields, fix getter names 2023-10-25 09:00:46 -04:00
types.go Split ServicePort/Endpoint from ServiceChangeTracker/EndpointsChangeTracker 2023-12-21 09:38:25 -05:00