diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-09-21 09:03:28 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-09-21 09:03:31 -0400 |
commit | 185294cb8c8945f7a1ec43429426f61f14bcb7fc (patch) | |
tree | b487b1d55f7588ef132c7e56fc2aaf879fab2894 /pkg/env/env.go | |
parent | 9b5522d9adff9e8b2413e626bfc62d1df28ce534 (diff) | |
download | podman-185294cb8c8945f7a1ec43429426f61f14bcb7fc.tar.gz podman-185294cb8c8945f7a1ec43429426f61f14bcb7fc.tar.bz2 podman-185294cb8c8945f7a1ec43429426f61f14bcb7fc.zip |
Generate kube should'd add podman default environment vars
Currently we add the default PATH, TERM and container from Podman
to every kubernetes.yaml file. These values should not be recorded
in the yaml files.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/env/env.go')
-rw-r--r-- | pkg/env/env.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/env/env.go b/pkg/env/env.go index 0d55e5560..ecd2d62a5 100644 --- a/pkg/env/env.go +++ b/pkg/env/env.go @@ -17,8 +17,9 @@ const whiteSpaces = " \t" // DefaultEnvVariables returns a default environment, with $PATH and $TERM set. func DefaultEnvVariables() map[string]string { return map[string]string{ - "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", - "TERM": "xterm", + "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", + "TERM": "xterm", + "container": "podman", } } |