From ee5a18ae86e6adb43877e66539c63382e13ecf30 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Thu, 5 May 2022 12:21:09 +0200 Subject: [PATCH] Formatting and comment --- generator/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generator/main.go b/generator/main.go index 90ef1e5..f00e66d 100644 --- a/generator/main.go +++ b/generator/main.go @@ -468,7 +468,7 @@ func prepareInitContainers(name string, s types.ServiceConfig, container *helm.C // prepareProbes generate http/tcp/command probes for a service. func prepareProbes(name string, s types.ServiceConfig, container *helm.Container) { - // first, check if there is no label for the probe + // first, check if there a label for the probe if check, ok := s.Labels[helm.LABEL_HEALTHCHECK]; ok { check = strings.TrimSpace(check) p := helm.NewProbeFromService(&s) @@ -490,6 +490,7 @@ func prepareProbes(name string, s types.ServiceConfig, container *helm.Container } return // label overrides everything } + // if not, we will use the default one if s.HealthCheck != nil { container.LivenessProbe = buildCommandProbe(s)