Skip to content

Commit

Permalink
Missing last ipv6 conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
xorl committed Mar 22, 2024
1 parent 7d31875 commit 6dad0c1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6dad0c1

Please sign in to comment.