From b16897b8758ea459a456744901688985a5b1df1f Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Fri, 17 Dec 2021 10:29:08 +0100 Subject: [PATCH] Fix the section following the config type. --- generator/main.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/generator/main.go b/generator/main.go index ea590cc..7c5e29c 100644 --- a/generator/main.go +++ b/generator/main.go @@ -95,8 +95,14 @@ func parseService(name string, s *compose.Service, ret chan interface{}) { ActivateColors = false os.Exit(2) } + + section := "configMapRef" + if isSecret { + section = "secretRef" + } + container.EnvFrom = append(container.EnvFrom, map[string]map[string]string{ - "configMapRef": { + section: { "name": store.Metadata().Name, }, })