Files
podman/pkg
Salih Muhammed aec2f54ec6 quadlet: expand %N specifier in the Pod key
The Pod key of a .container unit accepts systemd specifiers, but handlePod
looked the referenced pod up in the units map using the raw value, so
"Pod=%N.pod" failed with "quadlet pod unit %N.pod does not exist" instead
of resolving to the pod named after the container's service.

Expand %N to the container's service name before the lookup, matching the
existing handling in GetContainerResourceName. Since %N is the service
name, setting ServiceName= lets the container and pod unit files use
different names.

Add e2e cases for both combinations: a pod named after the container
file, and a pod named after a ServiceName that differs from the file
name.

Fixes: #29108
Signed-off-by: Salih Muhammed <root@lr0.org>
2026-08-09 04:23:53 -04:00
..
2026-03-09 11:09:23 +01:00
2022-12-15 13:39:56 +01:00
2026-06-09 11:51:46 -07:00
2025-09-10 16:17:04 +02:00
2026-04-22 14:02:25 -05:00
2025-09-10 16:17:04 +02:00
2025-09-10 16:17:04 +02:00
2025-11-11 12:32:46 +01:00