mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
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:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user