kubernetes/pkg/proxy
Dan Winship 9cd0552ddd proxy/iptables: Remove unnecessary /32 and /128 in iptables rules
If you pass just an IP address to "-s" or "-d", the iptables command
will fill in the correct mask automatically.

Originally, the proxier was just hardcoding "/32" for all of these,
which was unnecessary but simple. But when IPv6 support was added, the
code was made more complicated to deal with the fact that the "/32"
needed to be "/128" in the IPv6 case, so it would parse the IPs to
figure out which family they were, which in turn involved adding some
checks in case the parsing fails (even though that "can't happen" and
the old code didn't check for invalid IPs, even though that would
break the iptables-restore if there had been any).

Anyway, all of that is unnecessary because we can just pass the IP
strings to iptables directly rather than parsing and unparsing them
first.

(The diff to proxier_test.go is just deleting "/32" everywhere.)
2021-11-09 09:32:50 -05:00
..
apis move IPv6DualStack feature to stable. (#104691) 2021-09-24 16:30:22 -07:00
config rebuild msg and rename namespace 2021-09-20 19:04:21 +08:00
healthcheck Migrated proxier_health.go , proxier.go to structured logging (#105767) 2021-10-21 10:17:48 -07:00
iptables proxy/iptables: Remove unnecessary /32 and /128 in iptables rules 2021-11-09 09:32:50 -05:00
ipvs proxy/iptables, proxy/ipvs: Remove an unnecessary check 2021-11-09 09:32:50 -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 kube-proxy iptables expose number of rules metrics 2021-03-05 10:00:38 +01:00
userspace proxy/iptables: Remove unnecessary /32 and /128 in iptables rules 2021-11-09 09:32:50 -05:00
util proxy/iptables: Remove unnecessary /32 and /128 in iptables rules 2021-11-09 09:32:50 -05:00
winkernel Migrated proxier_health.go , proxier.go to structured logging (#105767) 2021-10-21 10:17:48 -07:00
winuserspace Migrated pkg/proxy/winuserspace to structured logging (#105035) 2021-09-16 11:36:02 -07:00
doc.go
endpoints_test.go Graduate EndpointSliceProxying and WindowsEndpointSliceProxying Gates 2021-07-07 13:33:30 -07:00
endpoints.go kube-proxy: fix stale detection logic 2021-11-05 20:14:56 +01:00
endpointslicecache_test.go Kubeproxy uses V1 EndpointSlice 2021-06-30 18:41:57 -07:00
endpointslicecache.go Migrated pkg/proxy to structured logging (#104891) 2021-10-14 09:47:17 -07:00
OWNERS pkg/proxy: add sig-network-approvers/sig-network-reviewers to OWNERS files 2019-05-13 10:30:29 -05:00
service_test.go run hack/update-netparse-cve.sh 2021-08-20 10:42:09 +02:00
service.go Migrated pkg/proxy to structured logging (#104891) 2021-10-14 09:47:17 -07:00
topology_test.go Graduate EndpointSliceProxying and WindowsEndpointSliceProxying Gates 2021-07-07 13:33:30 -07:00
topology.go Migrated pkg/proxy to structured logging (#104891) 2021-10-14 09:47:17 -07:00
types.go Drop broken/no-op proxyconfig.EndpointsHandler implementations 2021-09-13 09:32:38 -04:00