Skip to content

Commit 3a62702

Browse files
committed
fix: don't attempt to log an entire pod object
When encountering a pod associated with an owner, but not finding its owner, it should suffice to log the pod's metadata so we know the name and ownerReference. Logging the entire pod object could result in either accidentally leaking sensitive data, or just logging an unbounded huge object and break log parsing.
1 parent dec45b1 commit 3a62702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/supervisor/metadata-extractor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export async function buildMetadataForWorkload(
177177

178178
if (podOwner === undefined) {
179179
logger.info(
180-
{ pod },
180+
{ podMetadata: pod.metadata },
181181
'pod associated with owner, but owner not found. not building metadata.',
182182
);
183183
return undefined;

0 commit comments

Comments
 (0)