• Kubernetes Submit Queue's avatar
    Merge pull request #52503 from joelsmith/journald-log-fallback · e3e2e24c
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 54040, 52503). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Get fallback termination msg from docker when using journald log driver
    
    **What this PR does / why we need it**:
    
    When using the legacy docker container runtime and when a container has `terminationMessagePolicy=FallbackToLogsOnError` and when docker is configured with a log driver other than `json-log` (such as `journald`), the kubelet should not try to get the container's log from the json log file (since it's not there) but should instead ask docker for the logs.
    
    **Which issue this PR fixes** fixes #52502
    
    **Special notes for your reviewer**:
    
    **Release note**:
    ```release-note
    Fixed log fallback termination messages when using docker with journald log driver
    ```
    e3e2e24c
Name
Last commit
Last update
..
cm Loading commit data...
errors Loading commit data...
fixtures/seccomp Loading commit data...
libdocker Loading commit data...
metrics Loading commit data...
remote Loading commit data...
testing Loading commit data...
BUILD Loading commit data...
checkpoint_store.go Loading commit data...
checkpoint_store_test.go Loading commit data...
convert.go Loading commit data...
convert_test.go Loading commit data...
doc.go Loading commit data...
docker_checkpoint.go Loading commit data...
docker_checkpoint_test.go Loading commit data...
docker_container.go Loading commit data...
docker_container_test.go Loading commit data...
docker_image.go Loading commit data...
docker_image_linux.go Loading commit data...
docker_image_test.go Loading commit data...
docker_image_unsupported.go Loading commit data...
docker_image_windows.go Loading commit data...
docker_sandbox.go Loading commit data...
docker_sandbox_test.go Loading commit data...
docker_service.go Loading commit data...
docker_service_test.go Loading commit data...
docker_stats_linux.go Loading commit data...
docker_stats_unsupported.go Loading commit data...
docker_stats_windows.go Loading commit data...
docker_streaming.go Loading commit data...
exec.go Loading commit data...
helpers.go Loading commit data...
helpers_linux.go Loading commit data...
helpers_linux_test.go Loading commit data...
helpers_test.go Loading commit data...
helpers_unsupported.go Loading commit data...
helpers_windows.go Loading commit data...
naming.go Loading commit data...
naming_test.go Loading commit data...
security_context.go Loading commit data...
security_context_test.go Loading commit data...
selinux_util.go Loading commit data...
selinux_util_test.go Loading commit data...