From 6dad0c140674231bbe23a6cad2b3c333ca3572b1 Mon Sep 17 00:00:00 2001 From: Ryan Lewon Date: Thu, 21 Mar 2024 21:59:21 -0700 Subject: [PATCH] Missing last ipv6 conversion. --- .../java/io/airbyte/workers/process/KubePodProcess.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/airbyte-commons-worker/src/main/java/io/airbyte/workers/process/KubePodProcess.java b/airbyte-commons-worker/src/main/java/io/airbyte/workers/process/KubePodProcess.java index 9fec2ddb255..2d00e882e13 100644 --- a/airbyte-commons-worker/src/main/java/io/airbyte/workers/process/KubePodProcess.java +++ b/airbyte-commons-worker/src/main/java/io/airbyte/workers/process/KubePodProcess.java @@ -188,7 +188,11 @@ public static String getPodIP(final KubernetesClient client, final String podNam if (pod == null) { throw new RuntimeException(prependPodInfo("Error: unable to find pod!", podNamespace, podName)); } - return pod.getStatus().getPodIP(); + if (pod.getStatus().getPodIP().contains(":")) { + return "[" + pod.getStatus().getPodIP() + "]"; + } else { + return pod.getStatus().getPodIP(); + } } private static Container getInit(final boolean usesStdin,