Don't reconcile health checks after first create.

This commit is contained in:
bprashanth 2016-09-23 14:22:22 -07:00
parent d99efea804
commit e30bbdfe2c

View file

@ -64,13 +64,13 @@ func (h *HealthChecks) Add(port int64) error {
return err return err
} }
} else if wantHC.RequestPath != hc.RequestPath { } else if wantHC.RequestPath != hc.RequestPath {
// TODO: also compare headers interval etc. // TODO: reconcile health checks, and compare headers interval etc.
glog.Infof("Updating health check %v, path %v -> %v", name, hc.RequestPath, wantHC.RequestPath) // Currently Ingress doesn't expose all the health check params
if err := h.cloud.UpdateHttpHealthCheck(wantHC); err != nil { // natively, so some users prefer to hand modify the check.
return err glog.Infof("Unexpected request path on health check %v, has %v want %v, NOT reconciling",
} name, hc.RequestPath, wantHC.RequestPath)
} else { } else {
glog.Infof("Health check %v already exists", hc.Name) glog.Infof("Health check %v already exists and has the expected path %v", hc.Name, hc.RequestPath)
} }
return nil return nil
} }