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>
This commit is contained in:
Ygal Blum
2025-09-26 11:52:38 -04:00
parent a118fdf4e2
commit 83e65f91a4
7 changed files with 146 additions and 10 deletions

View File

@@ -0,0 +1,10 @@
## assert-podman-args-key-val "--mount" "," "type=volume,source=systemd-template-dependency-%i,destination=/path/in/container,ro=true"
## assert-podman-args -v systemd-template-dependency-%i:/container/quadlet
## assert-podman-args "--network" "systemd-template-dependency-%i"
## assert-key-is "Unit" "Requires" "template-dependency-network@.service" "template-dependency-volume@.service" "template-dependency-volume@.service"
[Container]
Image=localhost/imagename
Mount=type=volume,source=template-dependency@.volume,destination=/path/in/container,ro=true
Volume=template-dependency@.volume:/container/quadlet
Network=template-dependency@.network