From e704f1362abc416786076a932d8e2ca930b9fa2e Mon Sep 17 00:00:00 2001 From: Luap99 Date: Thu, 21 May 2020 17:36:41 +0200 Subject: Added new flags to 'podman generate systemd' to change the unit name prefix --container-prefix - default 'container' Systemd unit name prefix for containers --pod-prefix - default 'pod' Systemd unit name prefix for pods --separator - default '-' Systemd unit name seperator between name/id and prefix Signed-off-by: Paul Holzinger --- pkg/domain/entities/generate.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/domain/entities') diff --git a/pkg/domain/entities/generate.go b/pkg/domain/entities/generate.go index edd217615..68a42d897 100644 --- a/pkg/domain/entities/generate.go +++ b/pkg/domain/entities/generate.go @@ -14,6 +14,12 @@ type GenerateSystemdOptions struct { RestartPolicy string // StopTimeout - time when stopping the container. StopTimeout *uint + // ContainerPrefix - systemd unit name prefix for containers + ContainerPrefix string + // PodPrefix - systemd unit name prefix for pods + PodPrefix string + // Separator - systemd unit name seperator between name/id and prefix + Separator string } // GenerateSystemdReport -- cgit v1.2.3-54-g00ecf