zlabjp / nghttpx-ingress-lb

nghttpx ingress controller for Kubernetes
Other
136 stars 12 forks source link

Get address from EndpointSlice when processing Service without selectors #234

Closed tatsuhiro-t closed 1 year ago

tatsuhiro-t commented 1 year ago

If EndpointSlice is enabled, which is default, get addresses from EndpointSlice when processing Service without selectors.

This removes the need to cache Endpoints when EndpointSlice is enabled. This change also removes the watch filter by discoveryv1.LabelManagedBy for EndpointSlice to cache EndpointSlices which are not managed by endpointslice controller. But that label selector is simply unnecessary for the general case because we just need EndpointSlices whatever manages it.