fix(proxyd): Fix backend deletion (#729)

Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
This commit is contained in:
Brad Beam 2019-06-07 16:34:47 -05:00 committed by Andrew Rynhard
parent fb320a894b
commit c88b6fc422
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ policies:
- init
- initramfs
- kernel
- proxyd
- osctl
- osd
- rootfs

View File

@ -244,7 +244,7 @@ func (r *ReverseProxy) DeleteFunc() func(obj interface{}) {
return
}
if deleted := r.DeleteBackend(pod.Status.PodIP); deleted {
if deleted := r.DeleteBackend(string(pod.UID)); deleted {
log.Printf("deregistered API server %s (UID: %q) with IP: %s", pod.Name, pod.UID, pod.Status.PodIP)
}
}