From 1bf38cbca6670081a2ef81819c2f816321b0c8ad Mon Sep 17 00:00:00 2001 From: smruthi2187 Date: Mon, 5 Feb 2018 17:25:42 -0800 Subject: [PATCH] gofmt 2 files. --- controller/api.go | 2 +- executor/poolmgr/gp.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/api.go b/controller/api.go index d890cb18..00bdd150 100644 --- a/controller/api.go +++ b/controller/api.go @@ -128,7 +128,7 @@ func (api *API) ApiVersionMismatchHandler(w http.ResponseWriter, r *http.Request api.respondWithError(w, err) } -func (api *API) HealthHandler (w http.ResponseWriter, r *http.Request) { +func (api *API) HealthHandler(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) } diff --git a/executor/poolmgr/gp.go b/executor/poolmgr/gp.go index cf07e3dd..f796e59b 100644 --- a/executor/poolmgr/gp.go +++ b/executor/poolmgr/gp.go @@ -519,7 +519,7 @@ func (gp *GenericPool) createPool() error { "-secret-dir", gp.sharedSecretPath, "-cfgmap-dir", gp.sharedCfgMapPath, gp.sharedMountPath}, - ReadinessProbe: &apiv1.Probe { + ReadinessProbe: &apiv1.Probe{ InitialDelaySeconds: 5, PeriodSeconds: 2, Handler: apiv1.Handler{ @@ -532,7 +532,7 @@ func (gp *GenericPool) createPool() error { }, }, }, - LivenessProbe: &apiv1.Probe { + LivenessProbe: &apiv1.Probe{ InitialDelaySeconds: 5, PeriodSeconds: 5, Handler: apiv1.Handler{