mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
kube play: only enforce passthrough in Quadlet
Only enforce the passthrough log driver for Quadlet. Commit 68fbebf
introduced a regression on the `podman-kube@` template as `podman logs`
stopped working and settings from containers.conf were ignored.
Fixes: #17482
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
## assert-podman-final-args-regex .*/podman_test.*/quadlet/deployment.yml
|
||||
## assert-podman-args "--replace"
|
||||
## assert-podman-args "--service-container=true"
|
||||
## assert-podman-args "--log-driver" "passthrough"
|
||||
## assert-podman-stop-args "kube"
|
||||
## assert-podman-stop-args "down"
|
||||
## assert-podman-stop-final-args-regex .*/podman_test.*/quadlet/deployment.yml
|
||||
|
||||
@@ -393,6 +393,7 @@ var _ = Describe("quadlet system generator", func() {
|
||||
"## assert-podman-final-args-regex .*/podman_test.*/quadlet/deployment.yml",
|
||||
"## assert-podman-args \"--replace\"",
|
||||
"## assert-podman-args \"--service-container=true\"",
|
||||
"## assert-podman-args \"--log-driver\" \"passthrough\"",
|
||||
"## assert-podman-stop-args \"kube\"",
|
||||
"## assert-podman-stop-args \"down\"",
|
||||
"## assert-podman-stop-final-args-regex .*/podman_test.*/quadlet/deployment.yml",
|
||||
@@ -413,7 +414,7 @@ var _ = Describe("quadlet system generator", func() {
|
||||
"Type=notify",
|
||||
"NotifyAccess=all",
|
||||
"SyslogIdentifier=%N",
|
||||
fmt.Sprintf("ExecStart=/usr/local/bin/podman kube play --replace --service-container=true %s/deployment.yml", quadletDir),
|
||||
fmt.Sprintf("ExecStart=/usr/local/bin/podman kube play --replace --service-container=true --log-driver passthrough %s/deployment.yml", quadletDir),
|
||||
fmt.Sprintf("ExecStop=/usr/local/bin/podman kube down %s/deployment.yml", quadletDir),
|
||||
}
|
||||
|
||||
|
||||
@@ -414,10 +414,10 @@ EOF
|
||||
run_podman 125 container rm $service_container
|
||||
is "$output" "Error: container .* is the service container of pod(s) .* and cannot be removed without removing the pod(s)"
|
||||
|
||||
# Verify that the log-driver for the Pod's containers is passthrough
|
||||
# containers/podman/issues/17482: verify that the log-driver for the Pod's containers is NOT passthrough
|
||||
for name in "a" "b"; do
|
||||
run_podman container inspect test_pod-${name} --format "{{.HostConfig.LogConfig.Type}}"
|
||||
is $output "passthrough"
|
||||
assert $output != "passthrough"
|
||||
done
|
||||
|
||||
# Add a simple `auto-update --dry-run` test here to avoid too much redundancy
|
||||
|
||||
Reference in New Issue
Block a user