• Kubernetes Submit Queue's avatar
    Merge pull request #52567 from smarterclayton/fix_fallback_to_logs · cece3990
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 50890, 52484, 52542, 52567, 50672). 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>..
    
    Do not set message when terminationMessagePath not found
    
    If terminationMessagePath is set to a file that does not exist, we should not log an error message and instead try falling back to logs (based on the user's request).
    
    This also slightly simplifies the terminationMessagePath processing.
    
    Seen in #50499
    
    ```release-note
    If a container does not create a file at the `terminationMessagePath`, no message should be output about being unable to find the file.
    ```
    cece3990
Name
Last commit
Last update
..
BUILD Loading commit data...
doc.go Loading commit data...
fake_kuberuntime_manager.go Loading commit data...
helpers.go Loading commit data...
helpers_test.go Loading commit data...
instrumented_services.go Loading commit data...
instrumented_services_test.go Loading commit data...
kuberuntime_container.go Loading commit data...
kuberuntime_container_test.go Loading commit data...
kuberuntime_gc.go Loading commit data...
kuberuntime_gc_test.go Loading commit data...
kuberuntime_image.go Loading commit data...
kuberuntime_image_test.go Loading commit data...
kuberuntime_logs.go Loading commit data...
kuberuntime_logs_test.go Loading commit data...
kuberuntime_manager.go Loading commit data...
kuberuntime_manager_test.go Loading commit data...
kuberuntime_sandbox.go Loading commit data...
kuberuntime_sandbox_test.go Loading commit data...
labels.go Loading commit data...
labels_test.go Loading commit data...
legacy.go Loading commit data...
legacy_test.go Loading commit data...
security_context.go Loading commit data...
security_context_test.go Loading commit data...