Skip to content

Commit

Permalink
make podman play use ENVs from image
Browse files Browse the repository at this point in the history
fixes #8608.

Signed-off-by: Christopher J. Ruwe <[email protected]>
  • Loading branch information
cruwe committed Dec 9, 2020
1 parent dd295f2 commit b13ae2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/specgen/generate/kube/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ func ToSpecGen(ctx context.Context, containerYAML v1.Container, iid string, newI

// Environment Variables
envs := map[string]string{}
for _, env := range imageData.Config.Env {
keyval := strings.Split(env, "=")
envs[keyval[0]] = keyval[1]
}

for _, env := range containerYAML.Env {
value := envVarValue(env, configMaps)

Expand Down

0 comments on commit b13ae2b

Please sign in to comment.