diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-20 12:52:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 12:52:30 +0100 |
commit | 516c16c366531ec8c05a496bf3ffe1c6386aedc6 (patch) | |
tree | 0d3d144f6f4b03cc5f8c16e9ae686fcbf8f4928e /libpod | |
parent | f45070ee0e63ea26e475e618ff32a498096fa561 (diff) | |
parent | af6bcd086794668889a2695e02ea89cff966ae35 (diff) | |
download | podman-516c16c366531ec8c05a496bf3ffe1c6386aedc6.tar.gz podman-516c16c366531ec8c05a496bf3ffe1c6386aedc6.tar.bz2 podman-516c16c366531ec8c05a496bf3ffe1c6386aedc6.zip |
Merge pull request #12648 from ttys3/fix-generate-kube-env-missing
fix(generate): fix up podman generate kube missing env field bug
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/kube.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/kube.go b/libpod/kube.go index 4e61b5377..d667616d0 100644 --- a/libpod/kube.go +++ b/libpod/kube.go @@ -747,7 +747,7 @@ func libpodEnvVarsToKubeEnvVars(envs []string, imageEnvs []string) ([]v1.EnvVar, defaultEnv := env.DefaultEnvVariables() envVars := make([]v1.EnvVar, 0, len(envs)) imageMap := make(map[string]string, len(imageEnvs)) - for _, ie := range envs { + for _, ie := range imageEnvs { split := strings.SplitN(ie, "=", 2) imageMap[split[0]] = split[1] } |