Update description if not correct

This commit is contained in:
Nick Sardo 2017-05-22 16:11:05 -07:00
parent db060615f8
commit 4bed0c8627

View file

@ -234,7 +234,7 @@ func (b *Backends) Add(p ServicePort) error {
if len(be.HealthChecks) == 1 {
existingHCLink = be.HealthChecks[0]
}
if be.Protocol != string(p.Protocol) || existingHCLink != hcLink {
if be.Protocol != string(p.Protocol) || existingHCLink != hcLink || be.Description != p.Description() {
glog.V(2).Infof("Updating backend protocol %v (%v) for change in protocol (%v) or health check", pName, be.Protocol, string(p.Protocol))
be.Protocol = string(p.Protocol)
be.HealthChecks = []string{hcLink}