summaryrefslogtreecommitdiffstats
path: root/src/kube2msb
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2018-02-27 09:21:18 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2018-02-27 09:21:25 +0800
commit8066f6c94bb166fd8404bc406f3898bf6177f1ba (patch)
tree8937a572cdbb41bfa6bfbde2e695417144654eca /src/kube2msb
parent8ae5f1de322c3403d8f55a980ef25806f2a1d4f0 (diff)
Solve pod level service unregistration issue
Issue-ID: MSB-150 Change-Id: Ib5d761a9f3936edf9121c4497d9f0d7d9f09706f Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'src/kube2msb')
-rw-r--r--src/kube2msb/kube_work.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kube2msb/kube_work.go b/src/kube2msb/kube_work.go
index 4e99cbd..07a2e63 100644
--- a/src/kube2msb/kube_work.go
+++ b/src/kube2msb/kube_work.go
@@ -178,7 +178,7 @@ func (client *ClientBookKeeper) RemovePod(pod *kapi.Pod) {
client.msbQueue <- MSBWork{
Action: MSBWorkRemovePod,
ServiceInfo: pod.Annotations[serviceKey],
- IPAddress: pod.Status.PodIP,
+ IPAddress: client.pods[pod.Name].Status.PodIP,
}
delete(client.pods, pod.Name)
log.Println("Queued Pod to be removed: ", pod.Name)