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
}
} else if wantHC.RequestPath != hc.RequestPath {
// TODO: also compare headers interval etc.
glog.Infof("Updating health check %v, path %v -> %v", name, hc.RequestPath, wantHC.RequestPath)
if err := h.cloud.UpdateHttpHealthCheck(wantHC); err != nil {
return err
}
// TODO: reconcile health checks, and compare headers interval etc.
// Currently Ingress doesn't expose all the health check params
// natively, so some users prefer to hand modify the check.
glog.Infof("Unexpected request path on health check %v, has %v want %v, NOT reconciling",
name, hc.RequestPath, wantHC.RequestPath)
} 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
}