Skip to content

Commit

Permalink
Merge pull request #748 from nicksardo/bs-description-update
Browse files Browse the repository at this point in the history
[GLBC] Automatically update description for backend service
  • Loading branch information
nicksardo authored May 23, 2017
2 parents db06061 + 4bed0c8 commit e31ec21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/gce/backends/backends.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e31ec21

Please sign in to comment.