From eea515614cf84f35e8b085f37a0b7e740d0cc03e Mon Sep 17 00:00:00 2001 From: Parker Mossman Date: Thu, 10 Mar 2022 16:45:52 -0800 Subject: [PATCH] Revert "add /tmp emptyDir volume to connector pods (#10761)" (#11053) This reverts commit 921f4a13c630ac51840cd7bfb7e9077ec630723f. --- .../airbyte/workers/process/KubePodProcess.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/airbyte-workers/src/main/java/io/airbyte/workers/process/KubePodProcess.java b/airbyte-workers/src/main/java/io/airbyte/workers/process/KubePodProcess.java index 35acfaff01a78..3392772951320 100644 --- a/airbyte-workers/src/main/java/io/airbyte/workers/process/KubePodProcess.java +++ b/airbyte-workers/src/main/java/io/airbyte/workers/process/KubePodProcess.java @@ -113,7 +113,6 @@ public class KubePodProcess extends Process implements KubePod { private static final String STDOUT_PIPE_FILE = PIPES_DIR + "/stdout"; private static final String STDERR_PIPE_FILE = PIPES_DIR + "/stderr"; public static final String CONFIG_DIR = "/config"; - public static final String TMP_DIR = "/tmp"; private static final String TERMINATION_DIR = "/termination"; private static final String TERMINATION_FILE_MAIN = TERMINATION_DIR + "/main"; private static final String TERMINATION_FILE_CHECK = TERMINATION_DIR + "/check"; @@ -427,24 +426,13 @@ public KubePodProcess(final boolean isOrchestrator, .withMountPath(TERMINATION_DIR) .build(); - final Volume tmpVolume = new VolumeBuilder() - .withName("tmp") - .withNewEmptyDir() - .endEmptyDir() - .build(); - - final VolumeMount tmpVolumeMount = new VolumeMountBuilder() - .withName("tmp") - .withMountPath(TMP_DIR) - .build(); - final Container init = getInit(usesStdin, List.of(pipeVolumeMount, configVolumeMount), busyboxImage); final Container main = getMain( image, imagePullPolicy, usesStdin, entrypointOverride, - List.of(pipeVolumeMount, configVolumeMount, terminationVolumeMount, tmpVolumeMount), + List.of(pipeVolumeMount, configVolumeMount, terminationVolumeMount), resourceRequirements, internalToExternalPorts, envMap, @@ -512,7 +500,7 @@ public KubePodProcess(final boolean isOrchestrator, .withRestartPolicy("Never") .withInitContainers(init) .withContainers(containers) - .withVolumes(pipeVolume, configVolume, terminationVolume, tmpVolume) + .withVolumes(pipeVolume, configVolume, terminationVolume) .endSpec() .build();