From ac9f9602e92a9050c355c21e5a3f9f44ee919042 Mon Sep 17 00:00:00 2001 From: Mani Gandham Date: Tue, 22 Aug 2017 05:18:10 -0700 Subject: [PATCH] Use unmodified `PeriodSeconds` setting Use actual interval setting from readiness probe instead of modifying. --- controllers/gce/backends/backends.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/gce/backends/backends.go b/controllers/gce/backends/backends.go index d46d68d10..575caa600 100644 --- a/controllers/gce/backends/backends.go +++ b/controllers/gce/backends/backends.go @@ -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) }