From cc73d57f5af0d9d7534a749e286371169e0c5a5e Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Sun, 3 Apr 2022 16:09:33 +0200 Subject: [PATCH] better loop range --- generator/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/main.go b/generator/main.go index 0de5bf0..14c56df 100644 --- a/generator/main.go +++ b/generator/main.go @@ -501,7 +501,7 @@ func prepareInitContainers(name string, s types.ServiceConfig, container *helm.C // We need to detect others services, but we probably not have parsed them yet, so // we will wait for them for a while. initContainers := make([]*helm.Container, 0) - for dp, _ := range s.DependsOn { + for dp := range s.DependsOn { c := helm.NewContainer("check-"+dp, "busybox", nil, s.Labels) command := strings.ReplaceAll(strings.TrimSpace(dependScript), "__service__", dp)