podman kube play does not use default environment variables #2930
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am using postgres image from Docker Library. If I run it just with
podman run
, without specifying any extra environment variables, it works fine - it picks default values for things likePGDATA
,PATH
etc.But if I use pod.yaml and
podman play kube
, it doesn't use any default values and forces me to specify every environment variable in my pod.yaml, like this:podman generate kube
outputs yaml with all possible environment variables that are needed, but it still would be nice not to specify all the internals like PATH etc directly, as I probably should not be concerned with internals of the image that much.Steps to reproduce the issue:
podman kube play pod.yaml
with the above yaml, but without PGDATA or PATHDescribe the results you received:
Container fails to start, as PGDATA variable is missing
Describe the results you expected:
Container starts with default PGDATA
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: