Documentation ¶
Index ¶
Constants ¶
View Source
const ( EndpointControllerEnable = "endpoint-controller/enable" EndpointControllerTargets = "endpoint-controller/targets" )
Variables ¶
This section is empty.
Functions ¶
func EndpointUpdateNeeded ¶
func EndpointUpdateNeeded( healthyTargets []string, endpointAddresses []corev1.EndpointAddress, ) bool
endpointUpdateNeeded check if the endpoint needs to be updated return true if update is needed return false if update is not needed.
Types ¶
type Controller ¶
type Controller struct { Clientset kubernetes.Interface Resync time.Duration BlockMiss int }
Controller defines the endpoint controller.
func (*Controller) UpdateEndpointTargets ¶
func (c *Controller) UpdateEndpointTargets(endpoints corev1.Endpoints, ips []string) error
Update endpoint targets.
Click to show internal directories.
Click to hide internal directories.