kubernetes/pkg/api/v1
Quan Tian 2b69daa960 Allow specifying ExternalTrafficPolicy for ClusterIP Services with ExternalIPs
When defining a ClusterIP Service, we can specify externalIP, and the
traffic policy of externalIP is subject to externalTrafficPolicy.
However, the policy can't be set when type is not NodePort or
LoadBalancer, and will default to Cluster when kube-proxy processes the
Service.

This commit updates the defaulting and validation of Service to allow
specifying ExternalTrafficPolicy for ClusterIP Services with
ExternalIPs.

Signed-off-by: Quan Tian <qtian@vmware.com>
2023-08-30 23:56:47 +08:00
..
endpoints replaced spew.Sprintf with a util pretty print function 2023-03-27 09:24:22 +08:00
persistentvolume Change reflect.Ptr to reflect.Pointer 2022-06-26 01:23:43 +09:00
pod api: replace intstr.FromInt with intstr.FromInt32 2023-05-01 09:16:15 +02:00
resource implement sidecar resource calculation 2023-07-08 07:26:13 +09:00
service Allow specifying ExternalTrafficPolicy for ClusterIP Services with ExternalIPs 2023-08-30 23:56:47 +08:00
OWNERS lavalamp is taking a long break 2023-05-11 16:43:38 +00:00