kube-apiserver: first remove endpoints, then add when ready

This commit is contained in:
Dr. Stefan Schimanski
2019-02-27 17:21:47 +01:00
parent 14f2a335dc
commit 2a9a9fa155
5 changed files with 35 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ type EndpointReconciler interface {
ReconcileEndpoints(serviceName string, ip net.IP, endpointPorts []corev1.EndpointPort, reconcilePorts bool) error
// RemoveEndpoints removes this apiserver's lease.
RemoveEndpoints(serviceName string, ip net.IP, endpointPorts []corev1.EndpointPort) error
// StopReonciling turns any later ReconcileEndpoints call into a noop.
// StopReconciling turns any later ReconcileEndpoints call into a noop.
StopReconciling()
}