-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support env variables based on ConfigMaps sent in payload #12447
Support env variables based on ConfigMaps sent in payload #12447
Conversation
Fixes containers#12363 Signed-off-by: Jakub Dzon <[email protected]>
LGTM |
}) | ||
|
||
It("podman play kube uses all env values from both sources", func() { | ||
SkipIfRemote("--configmaps is not supported for remote") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is a backport but why is this skipped for remote, I thought this PR should fix the remote client so it should be tested in CI as remote.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this particular test uses both new ConfigMap-in-payload approach that works in remote setup and old --configmaps
parameter that does not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker: Could we convert --configmap
from static file to payload and send it over ? But following change should go in main
as well since it was not supported in original PR.
LGTM |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jakub-dzon, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR is a back port of #12371.
This PR adds support for providing
ConfigMap
YAML definitions as part ofpodman play kube
input.ConfigMap
provided this way can be referred to as a source of environments variables for pods.So far it has only been possible to use ConfigMaps defined in files local to podman starting the pods using
--configmaps
parameter, which does not work in remote scenarios (even if the HTTP call is made withing the same host).This PR aims at dealing with the same problem as the other attempt in #12243.
How to verify it
Add ConfigMap definition to a YAML multidoc and refer to it in a container defined in a pod in the same file; properties defined in the ConfigMap will be visible in the pod as environment variables.
Which issue(s) this PR fixes:
Fixes #12363