mirror of
https://github.com/containers/podman.git
synced 2025-12-09 15:19:35 +08:00
Quadlet - support oneshot .kube files
Allow users to manually set the Service Type Add test Update README Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
19
test/e2e/quadlet/oneshot.kube
Normal file
19
test/e2e/quadlet/oneshot.kube
Normal file
@@ -0,0 +1,19 @@
|
||||
## assert-podman-args "kube"
|
||||
## assert-podman-args "play"
|
||||
## assert-podman-final-args-regex .*/podman_test.*/quadlet/deployment.yml
|
||||
## assert-podman-args "--replace"
|
||||
## assert-podman-args "--service-container=true"
|
||||
## assert-podman-stop-post-args "kube"
|
||||
## assert-podman-stop-post-args "down"
|
||||
## assert-podman-stop-post-final-args-regex .*/podman_test.*/quadlet/deployment.yml
|
||||
## assert-key-is "Unit" "RequiresMountsFor" "%t/containers"
|
||||
## assert-key-is "Service" "KillMode" "mixed"
|
||||
## assert-key-is "Service" "Type" "oneshot"
|
||||
## assert-key-is "Service" "Environment" "PODMAN_SYSTEMD_UNIT=%n"
|
||||
## assert-key-is "Service" "SyslogIdentifier" "%N"
|
||||
|
||||
[Kube]
|
||||
Yaml=deployment.yml
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
@@ -764,6 +764,7 @@ BOGUS=foo
|
||||
Entry("Kube - Working Directory already in Service", "workingdir-service.kube", 0, ""),
|
||||
Entry("Kube - global args", "globalargs.kube", 0, ""),
|
||||
Entry("Kube - Containers Conf Modules", "containersconfmodule.kube", 0, ""),
|
||||
Entry("Kube - Service Type=oneshot", "oneshot.kube", 0, ""),
|
||||
|
||||
Entry("Network - Basic", "basic.network", 0, ""),
|
||||
Entry("Network - Disable DNS", "disable-dns.network", 0, ""),
|
||||
|
||||
Reference in New Issue
Block a user