Quadlet Kube: Set SyslogIdentifier if was not set

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
Ygal Blum
2022-12-04 15:53:44 +02:00
parent ca6ae5ca98
commit d61618ad44
4 changed files with 26 additions and 1 deletions

View File

@ -638,6 +638,10 @@ func ConvertKube(kube *parser.UnitFile) (*parser.UnitFile, error) {
"Type", "notify",
"NotifyAccess", "all")
if !kube.HasKey(ServiceGroup, "SyslogIdentifier") {
service.Set(ServiceGroup, "SyslogIdentifier", "%N")
}
execStart := NewPodmanCmdline("kube", "play")
execStart.add(