From 613092662601dc69bff6bfa1f076c17ee3b9e9ea Mon Sep 17 00:00:00 2001 From: Jefferson Ramos Date: Tue, 30 Jun 2026 17:08:15 -0300 Subject: [PATCH] pkg/cvo: set terminationMessagePolicy on update-payload pods The update-payload pods created by CVO to retrieve release images were missing terminationMessagePolicy=FallbackToLogsOnError on all containers, causing the monitor test [Monitor:termination-message-policy] to flake. Set the policy in setContainerDefaults() so all init containers and the main container inherit it. Fixes https://redhat.atlassian.net/browse/OCPBUGS-84513 Co-Authored-By: Claude Opus 4.6 --- pkg/cvo/updatepayload.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cvo/updatepayload.go b/pkg/cvo/updatepayload.go index acf31aff0..2186ea9b1 100644 --- a/pkg/cvo/updatepayload.go +++ b/pkg/cvo/updatepayload.go @@ -218,6 +218,7 @@ func (r *payloadRetriever) fetchUpdatePayloadToDir(ctx context.Context, dir stri corev1.ResourceEphemeralStorage: resource.MustParse("2Mi"), }, } + container.TerminationMessagePolicy = corev1.TerminationMessageFallbackToLogsOnError return container }