Jan Rodák
cf6404f387
Fix Quadlet Lookup() stripping unmatched quotes
...
Fixes: https://github.com/containers/podman/issues/28409
Signed-off-by: Jan Rodák <hony.com@seznam.cz >
2026-03-31 10:27:39 +02:00
umut-polat
926f562bd5
quadlet: allow empty Entrypoint to clear image default
...
Setting Entrypoint= (empty value) in a quadlet .container file should
produce --entrypoint "" in the generated podman command, which clears
the image's default entrypoint. Previously this was silently ignored
because lookupAndAddString skips empty values.
Move the Entrypoint key out of the generic stringKeys map and handle
it separately so that an empty value is passed through.
Closes #28213
Signed-off-by: umut-polat <52835619+umut-polat@users.noreply.github.com >
2026-03-13 08:14:57 +00:00
Povilas Kanapickas
636eb1a401
libpod: Implement --log-opt label=LABEL=Value
...
This allows things like compose project names to be associated with log
messages and later used in log processing and analysis.
Signed-off-by: Povilas Kanapickas <povilas@radix.lt >
2026-03-06 10:59:31 +02:00
Ygal Blum
6c41f55aa7
Quadlet Volume - allow setting mount option without a device
...
Fixes : #28132
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2026-02-26 12:27:23 -05:00
Jan Rodák
33e8abd637
Respect user-specified Restart= policy in pod units
...
Fixes: https://github.com/containers/podman/issues/28081
Signed-off-by: Jan Rodák <hony.com@seznam.cz >
2026-02-16 22:12:18 +01:00
Šimon Brauner
9727a43f5a
Added setting UID and GID for volumes in quadlet
...
Related: https://issues.redhat.com/browse/RHEL-145863
Signed-off-by: Šimon Brauner <sbrauner@redhat.com >
2026-02-11 18:16:30 +01:00
Ygal Blum
0d3c438803
Quadlet - do not link pod service units to quadlet templates
...
When a template container unit is linked to a pod do not add
its service to the pod units dependency
Fixes: https://github.com/containers/podman/issues/27844
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2026-01-15 09:23:01 -05:00
Ashley Cui
aa1d7b189a
Remove network-cmd-path
...
As part of slirp removal.
RUN-3569
Signed-off-by: Ashley Cui <acui@redhat.com >
2025-12-19 16:52:49 -05:00
givensuman
e7b50c33df
Add AppArmor key to quadlet .container files
...
Fixes : #27095
Signed-off-by: givensuman <givensuman@duck.com >
2025-11-05 18:15:52 -05:00
Dmitry Konishchev
601a072b51
Escape RequiresMountsFor value
...
Signed-off-by: Dmitry Konishchev <konishchev@gmail.com >
2025-10-27 20:01:45 +03:00
Dmitry Konishchev
23057fd5ed
Rename misleading assertion name
...
Signed-off-by: Dmitry Konishchev <konishchev@gmail.com >
2025-10-27 19:23:51 +03:00
axel7083
f957852e4a
fix: failing tests
...
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com >
2025-10-22 18:07:03 +02:00
axel7083
8e013c0012
feat(quadlet: kube): support multiple Yaml entries
...
fixes https://github.com/containers/podman/issues/26274
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com >
2025-10-22 16:09:47 +02:00
openshift-merge-bot[bot]
f2a559a8fe
Merge pull request #27309 from ygalblum/quadlet-build-ignorefile
...
Quadlet build - add support for IgnoreFile key
2025-10-17 15:37:32 +00:00
Ygal Blum
1800b34b51
Quadlet build - add support for IgnoreFile key
...
Resolves: https://github.com/containers/podman/issues/27268
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-10-16 14:02:04 -04:00
openshift-merge-bot[bot]
ba4d836044
Merge pull request #27256 from givensuman/T-27065-add-quadlet-build-args-support
...
Add BuildArg key to quadlets
2025-10-16 15:24:52 +00:00
openshift-merge-bot[bot]
32d6c54054
Merge pull request #26624 from Odilhao/artifact-quadlet-implementation
...
Add artifact quadlet unit type support
2025-10-13 14:41:25 +00:00
Odilon Sousa
34254cd1d0
Add artifact quadlet unit type support
...
RFE: Add artifact quadlet unit type #25778
Signed-off-by: Odilon Sousa <osousa@redhat.com >
2025-10-10 11:08:33 -03:00
givensuman
196be4b813
Test for multiple key/val arguments
...
Signed-off-by: givensuman <givensuman@duck.com >
2025-10-08 13:20:41 -04:00
givensuman
720e263767
Add BuildArg key to quadlets
...
Signed-off-by: givensuman <givensuman@duck.com >
2025-10-08 12:44:11 -04:00
ByoungUk Lee
d1c43e3ae8
Fixed #27120 : Pod Quadlet can configure podman pod stop --time
...
Signed-off-by: ByoungUk Lee <nimdrak@gmail.com >
2025-10-08 23:53:14 +09:00
Ygal Blum
83e65f91a4
Quadlet - Support template dependency
...
Add support for Volumes and Networks
Add e2e and system tests
Resolves: https://github.com/containers/podman/issues/25136
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-09-30 13:41:20 -04:00
Ygal Blum
936a01e088
Quadlet build - consider File path that starts with a systemd specifier as absolute
...
Fixes https://github.com/containers/podman/issues/26746
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-09-09 13:57:36 -04:00
Jakob Meier
163bdf2df8
quadlet: fix runtime error for invalid Mount value
...
If the `Mount` option inside a quadlet is missing the source=... part,
the code today panics with the following message.
```
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/containers/podman/v5/pkg/systemd/quadlet.handleStorageSource(0xc000140de0?, 0x1d?, {0x0?, 0x1?}, 0x5634e39e233e?, 0x10?)
...
```
This commit checks for the missing source and returns an error to avoid the panic.
Signed-off-by: Jakob Meier <mail@jakobmeier.ch >
2025-09-04 21:46:01 +02:00
Ondřej Gajdušek
c65fd9a2c2
quadlet: add HttpProxy option for Container sections
...
Add support for HttpProxy key in quadlet Container sections to control
proxy environment variable inheritance during image pulls and builds.
- HttpProxy=true enables proxy inheritance (default podman behavior)
- HttpProxy=false disables proxy inheritance
- When omitted, uses podman's default behavior
This addresses the need for declarative proxy configuration in IPv6-only
networks and other scenarios where proxy settings need to be controlled
at the container level without manual workarounds.
Fixes #26925
Signed-off-by: Ondřej Gajdušek <ogajduse@redhat.com >
2025-09-01 13:45:06 +02:00
Ygal Blum
439448c287
Quadlet - add support for the Policy key for .image files
...
Resolves : #26446
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-07-10 13:06:38 -04:00
Ygal Blum
cd807f8ff6
Quadlet - print warning when fail to parse
...
Fixes : #26542
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-07-07 14:49:32 -04:00
Evan Miller
31b4efcaec
warn instead of error, lift logic to main.go
...
Signed-off-by: Evan Miller <miller.evan815@gmail.com >
2025-07-02 18:23:00 -07:00
Evan Miller
4b1f7bcb9a
Quadlet - Error when units define User, Group, or DynamicUser in Service group
...
Fixes : #26543
Signed-off-by: Evan Miller <miller.evan815@gmail.com >
2025-07-02 00:34:46 -07:00
openshift-merge-bot[bot]
72393c1c53
Merge pull request #26522 from ygalblum/quadlet-pod-service-environment
...
Quadlet - Do not override existing Environment in Service group for Pod units
2025-07-01 19:25:06 +00:00
openshift-merge-bot[bot]
43b74b1754
Merge pull request #26322 from NotSoFancyName/issue-26247
...
quadlet: handle generate environment params that inherit from host
2025-06-30 11:44:33 +00:00
Ygal Blum
f1a1948b23
Quadlet - Do not override existing Environment in Service group for Pod units
...
Fixes : #26521
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-06-27 09:56:43 -04:00
nbspsemicolon
5989370c39
pkg/systemd: expose [Pod] ExitPolicy key for pod create --exit-policy
...
Add ExitPolicy key to pod quadlets with logic to default to stop.
Docs updated with clarifcation on default value and usage example.
Simple assert added to bats to verify default constraint exists.
Changed argument order in ginkgo basic pod unit test
Signed-off-by: Neil Bailey <nbsp@nbailey.net >
2025-06-18 15:08:31 -04:00
Volodymyr Pankin
2b6c477884
quadlet: handle generate environment params that inherit from host
...
Fixes : #26247
Signed-off-by: Volodymyr Pankin <volopank@gmail.com >
2025-06-10 20:50:13 +02:00
Hiếu Lê
18ecd2046b
quadlet: generate RequiresMountsFor for Type=bind volumes
...
This makes sure that the volume source is available before the volume is
created.
Fixes: https://github.com/containers/podman/issues/26125
Signed-off-by: Hiếu Lê <leorize+oss@disroot.org >
2025-06-05 18:22:28 -05:00
Paul Holzinger
a0f7db44e8
quadlet: add InterfaceName option to network unit
...
I noticed this was missing, its a simple 1 to 1 mapping to
--interface-name.
Signed-off-by: Paul Holzinger <pholzing@redhat.com >
2025-06-04 16:46:39 +02:00
Ygal Blum
09d9d3e26b
Revert "Quadlet - fix pod name to depend on the name of the generate service"
...
This reverts commit 4f38c2fea2 .
Fixes : #26105
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-05-12 09:33:16 -04:00
Ygal Blum
4f38c2fea2
Quadlet - fix pod name to depend on the name of the generate service
...
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-05-06 12:02:01 -04:00
Ygal Blum
9b2fb40ab8
Quadlet - remove the usage of cid and podid for container and pod files
...
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-04-30 07:59:15 -04:00
Robin Heinemeier
802fc15b1e
Add Label to quadlet pod
...
Signed-off-by: Robin Heinemeier <sunnerlp@gmail.com >
2025-04-24 13:37:42 +00:00
openshift-merge-bot[bot]
5372c15bf8
Merge pull request #25892 from Regis-Caelum/quadlet-pod-hostname
...
Add HostName to quadlet pod
2025-04-22 12:52:04 +00:00
Inshal Khan
4ba8cde41d
Add HostName to quadlet pod
...
update docs for hostname
Signed-off-by: Inshal Khan <kziaul123@gmail.com >
2025-04-19 08:51:45 +05:30
Ygal Blum
6ac0a28564
Quadlet - support additional systemd unit relationship keys
...
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-04-17 14:51:24 -04:00
openshift-merge-bot[bot]
17f3aed4fd
Merge pull request #25899 from ygalblum/quadlet-unit-deps
...
Quadlet - translate dependencies on other quadlet units
2025-04-16 21:03:52 +00:00
Ygal Blum
e498c6526b
Quadlet - translate dependencies on other quadlet units
...
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-04-16 15:29:42 -04:00
openshift-merge-bot[bot]
09c2546b27
Merge pull request #25844 from ygalblum/quadlet-network-delete
...
Quadlet - allow deleting the network when stopping the service
2025-04-14 17:57:45 +00:00
Ygal Blum
0d4a148ee6
Quadlet - allow deleting the network when stopping the service
...
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-04-10 10:34:16 -04:00
Ygal Blum
fe107ff0ce
Quadlet - Add support for adding ExecReload command
...
Add tests
Update man page
Signed-off-by: Ygal Blum <ygal.blum@gmail.com >
2025-04-09 14:40:41 -04:00
John Schug
a0cae65c13
quadlet: add support for the UpheldBy option in the Install section
...
This adds support for the UpheldBy option in quadlet files. The UpheldBy option
is the counterpart to the Upholds option added in systemd v249 and is
similar to the existing WantedBy and RequiredBy options.
See https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Upholds= .
Signed-off-by: John Schug <john.ips.schug@gmail.com >
2025-03-27 15:48:46 -07:00
Jan Kaluza
08a1c6d91e
Add support for Retry= and RetryDelay= to Podman Quadlet.
...
This commit adds new Retry= and RetryDelay= options
to quadlet.go which result in --retry and --retry-delay
usage in podman run, image and build commands.
This allows configuring the retry logic in the systemd
files.
Fixes : #25109
Signed-off-by: Jan Kaluza <jkaluza@redhat.com >
2025-03-26 09:01:28 +01:00