mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Remove endpoints of terminating tasks
This change was added to the upstream endpoint controller in 2aaf8bd
.
This commit is contained in:
parent
50d805110a
commit
857e1ac1ea
@ -308,6 +308,11 @@ func (e *endpointController) syncService(key string) {
|
|||||||
glog.V(4).Infof("Failed to find a host IP for pod %s/%s", pod.Namespace, pod.Name)
|
glog.V(4).Infof("Failed to find a host IP for pod %s/%s", pod.Namespace, pod.Name)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if pod.DeletionTimestamp != nil {
|
||||||
|
glog.V(5).Infof("Pod is being deleted %s/%s", pod.Namespace, pod.Name)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if !api.IsPodReady(pod) {
|
if !api.IsPodReady(pod) {
|
||||||
glog.V(5).Infof("Pod is out of service: %v/%v", pod.Namespace, pod.Name)
|
glog.V(5).Infof("Pod is out of service: %v/%v", pod.Namespace, pod.Name)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user