kubernetes/pkg/api
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/testing Move endpoints test-helper funcs to a package 2021-07-01 18:26:45 -07:00
job Add warnings for big number of completions and parallelism 2023-06-14 10:38:42 -04:00
legacyscheme hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
node deprecated node labels: make naming consistant and remove some unused args in funcs 2022-05-25 15:15:34 +08:00
persistentvolume implement pv last phase transition time 2023-07-21 20:42:25 +02:00
persistentvolumeclaim api: introduce separate VolumeResourceRequirements struct 2023-08-21 15:31:28 +02:00
pod api: introduce separate VolumeResourceRequirements struct 2023-08-21 15:31:28 +02:00
service Allow specifying ExternalTrafficPolicy for ClusterIP Services with ExternalIPs 2023-08-30 23:56:47 +08:00
storage deprecated node labels: make naming consistant and remove some unused args in funcs 2022-05-25 15:15:34 +08:00
testing Delete PSP API types and generated clients 2023-08-07 16:44:13 -04:00
v1 Allow specifying ExternalTrafficPolicy for ClusterIP Services with ExternalIPs 2023-08-30 23:56:47 +08:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00