service controller: if targetPort has changed will process by cloud-provider

Signed-off-by: guohaowang <wangguohao.2009@gmail.com>
This commit is contained in:
guohaowang
2019-06-06 15:37:14 +08:00
parent 737d74d12d
commit d41f7b99ef
3 changed files with 50 additions and 3 deletions

View File

@@ -565,8 +565,9 @@ func portEqualForLB(x, y *v1.ServicePort) bool {
return false
}
// We don't check TargetPort; that is not relevant for load balancing
// TODO: Should we blank it out? Or just check it anyway?
if x.TargetPort != y.TargetPort {
return false
}
return true
}