Use unmodified PeriodSeconds setting

Use actual interval setting from readiness probe instead of modifying.
This commit is contained in:
Mani Gandham 2017-08-22 05:18:10 -07:00 committed by GitHub
parent 31d45d8a5d
commit ac9f9602e9

View file

@ -472,6 +472,6 @@ func applyProbeSettingsToHC(p *v1.Probe, hc *healthchecks.HealthCheck) {
hc.RequestPath = healthPath
hc.Host = host
hc.Description = "Kubernetes L7 health check generated with readiness probe settings."
hc.CheckIntervalSec = int64(p.PeriodSeconds) + int64(healthchecks.DefaultHealthCheckInterval.Seconds())
hc.CheckIntervalSec = int64(p.PeriodSeconds)
hc.TimeoutSec = int64(p.TimeoutSeconds)
}