Fix the section following the config type.

This commit is contained in:
2021-12-17 10:29:08 +01:00
parent 8ccdb2854b
commit b16897b875

View File

@@ -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,
},
})