From d14e7d72a110112cbfd5485c47c4eade9dfbd9fd Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Wed, 1 May 2024 16:33:33 +0100 Subject: [PATCH] All containers must fallback to logs on error --- manifests-gen/customizations.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests-gen/customizations.go b/manifests-gen/customizations.go index 8530a9be1..885b25c15 100644 --- a/manifests-gen/customizations.go +++ b/manifests-gen/customizations.go @@ -234,6 +234,9 @@ func customizeDeployments(obj *unstructured.Unstructured) { if container.Name == "kube-rbac-proxy" { container.Image = "registry.ci.openshift.org/openshift:kube-rbac-proxy" } + + // This helps with debugging and is enforced in OCP, see https://issues.redhat.com/browse/OCPBUGS-33170. + container.TerminationMessagePolicy = corev1.TerminationMessageFallbackToLogsOnError } if err := scheme.Convert(deployment, obj, nil); err != nil {