Skip to content

Commit 6a42f44

Browse files
committed
logging a warning instead of a hard exception
1 parent 8067114 commit 6a42f44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airbyte-workers/src/main/java/io/airbyte/workers/process/KubePodProcess.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,11 @@ private Container getMainContainerFromPodDefinition() {
682682
.filter(c -> c.getName().contentEquals(MAIN_CONTAINER_NAME))
683683
.findFirst();
684684
if (containerOptional.isEmpty()) {
685-
throw new RuntimeException(String.format("Could not find main container definition for pod: %s", podDefinition.getMetadata().getName()));
685+
LOGGER.warn(String.format("Could not find main container definition for pod: %s", podDefinition.getMetadata().getName()));
686+
return null;
686687
} else {
687688
return containerOptional.get();
688689
}
689-
690690
}
691691

692692
@Override

0 commit comments

Comments
 (0)