config: add env_merge support to containers.conf#791
Open
jiwahn wants to merge 1 commit into
Open
Conversation
6 tasks
Member
|
restarted failed tests, not related to the change. |
jankaluza
reviewed
May 5, 2026
Member
|
I think adding test into You could also test |
Member
|
as for a tests here is an example commit b2db08d |
79cd99a to
a711841
Compare
Author
|
Thanks guys for the comments and the helpful example. I have updated the changes. changes
resultgo test ./common/pkg/config -ginkgo.focus="Config Modules"
go test ./common/pkg/config -ginkgo.focus="should parse env_merge from config file"
ok go.podman.io/common/pkg/config 0.006s
ok go.podman.io/common/pkg/config 0.007s |
a711841 to
5031f6b
Compare
Member
|
please squash the commits into a single one |
5031f6b to
44aeee5
Compare
Author
|
of course, rebased |
Allow users to set default env_merge values in containers.conf. Works the same as the --env-merge CLI option. Fixes: containers/podman#28410 Signed-off-by: Jiwoo Ahn <ikwydls1314@gmail.com>
44aeee5 to
e1e7a15
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow users to set default
env_mergevalues in containers.conf. Intended to work the same as the--env-mergeCLI option.env_mergeto containers.conf podman#28410Changes
EnvMerge []stringfield toContainersConfigstruct (config.go)default.go)env_merge = []entry tocontainers.conftemplatecontainers.conf.5.md