-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preliminary work add Kube unit support
- Loading branch information
Showing
6 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# @summary custom datatype that validates different filenames for systemd units and unit templates | ||
# @see https://www.freedesktop.org/software/systemd/man/systemd.unit.html | ||
type Systemd::Unit = Pattern[/^[a-zA-Z0-9:\-_.\\@%]+\.(service|socket|device|mount|automount|swap|target|path|timer|slice|scope)$/] | ||
type Systemd::Unit = Pattern[/^[a-zA-Z0-9:\-_.\\@%]+\.(service|socket|device|mount|automount|swap|target|path|timer|slice|scope|kube)$/] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# @summary Possible keys for the [Kube] section of a unit file | ||
# @see https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#kube-units-kube | ||
type Systemd::Unit::Kube = Struct[ | ||
{ | ||
Optional['AutoUpdate'] => String, | ||
Optional['ConfigMap'] => Stdlib::Unixpath, | ||
Optional['ContainersConfModule'] => Stdlib::Unixpath, | ||
Optional['ExitCodePropagation'] => Enum['all', 'any', 'none'], | ||
Optioanl['GlobalArgs'] => String, | ||
Optional['KubeDownForce'] => Boolean, | ||
Optional['LogDriver'] => String, | ||
Optional['Network'] => String, | ||
Optional['PodmanArgs'] => String, | ||
Optional['PublishPort'] => Variant[String, Integer], | ||
Optional['SetWorkingDirectory'] => Enum['yaml', 'unit'], | ||
Optional['UserNS'] => String, | ||
Optional['Yaml'] => Stdlib::Unixpath, | ||
} | ||
] |