diff options
author | Alban Bedel <albeu@free.fr> | 2021-03-26 10:54:26 +0100 |
---|---|---|
committer | Alban Bedel <albeu@free.fr> | 2021-03-28 15:02:31 +0200 |
commit | e5ff694855820e8bf5b7f17680c3dc6586241bdd (patch) | |
tree | 5c57744226efd8b4dc3610c25f5e14c1f3f49fe1 /pkg/domain/infra | |
parent | 9f92b8b0d8ac34c02100579a5acf6c127392aff5 (diff) | |
download | podman-e5ff694855820e8bf5b7f17680c3dc6586241bdd.tar.gz podman-e5ff694855820e8bf5b7f17680c3dc6586241bdd.tar.bz2 podman-e5ff694855820e8bf5b7f17680c3dc6586241bdd.zip |
play kube: support optional/mandatory env var from config map
In K8S the pod creation fails if an env var reference a non existing
config map key. It can be marked as optional, but per default it is
mandatory. Podman on the other hand always treat such references as
optional.
Rework envVarsFrom() and envVarValue() to additionaly return an error
and add support for the optional attribute in configMapRef and
configMapKeyRef.
Signed-off-by: Alban Bedel <albeu@free.fr>
Diffstat (limited to 'pkg/domain/infra')
0 files changed, 0 insertions, 0 deletions