Skip to content

Commit 02df531

Browse files
committed
Bug 1952238: Report catalog pod termination logs to catalog operator on exit
This PR sets the terminationMessagePolicy for the registry container in the catalog pod as FallBackToLogsOnError to report back termination logs from a catalog pod to the catalog operator Signed-off-by: Anik Bhattacharjee <[email protected]>
1 parent e7ecc30 commit 02df531

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/controller/registry/reconciler/reconciler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ func Pod(source *v1alpha1.CatalogSource, name string, image string, saName strin
143143
v1.ResourceMemory: resource.MustParse("50Mi"),
144144
},
145145
},
146-
ImagePullPolicy: pullPolicy,
146+
ImagePullPolicy: pullPolicy,
147+
TerminationMessagePolicy: v1.TerminationMessageFallbackToLogsOnError,
147148
},
148149
},
149150
NodeSelector: map[string]string{

0 commit comments

Comments
 (0)