Skip to content

Commit

Permalink
raise init pod termination check timeout to 5 minutes (airbytehq#9260)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmossman authored Jan 3, 2022
1 parent 7300240 commit d5565d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private static void copyFilesToKubeConfigVolume(final KubernetesClient client,
// Copying the success indicator file to the init container causes the container to immediately
// exit, causing the `kubectl cp` command to exit with code 137. This check ensures that an error is
// not thrown in this case if the init container exits successfully.
if (file.getKey().equals(SUCCESS_FILE_NAME) && waitForInitPodToTerminate(client, podDefinition, 10, TimeUnit.SECONDS) == 0) {
if (file.getKey().equals(SUCCESS_FILE_NAME) && waitForInitPodToTerminate(client, podDefinition, 5, TimeUnit.MINUTES) == 0) {
LOGGER.info("Init was successful; ignoring non-zero kubectl cp exit code for success indicator file.");
} else {
throw new IOException("kubectl cp failed with exit code " + exitCode);
Expand Down

0 comments on commit d5565d3

Please sign in to comment.