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

@@ -115,6 +115,13 @@ quadlet_to_service_name() {
local extension="${filename##*.}"
local filename="${filename%.*}"
local suffix=""
local is_template=""
# Check if this is a template unit (ends with @)
if [[ "$filename" == *@ ]]; then
is_template="@"
filename="${filename%@}"
fi
if [ "$extension" == "volume" ]; then
suffix="-volume"
@@ -128,5 +135,5 @@ quadlet_to_service_name() {
suffix="-build"
fi
echo "$filename$suffix.service"
echo "$filename$suffix$is_template.service"
}