Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit 03f6a8f

Browse files
authored
feat: additional debug logs, increased startup timeout (#51)
1 parent bf3f24a commit 03f6a8f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/src/main/java/io/javaoperatorsdk/jenvtest/KubeAPIServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class KubeAPIServer implements UnexpectedProcessStopHandler {
1212

1313
private static final Logger log = LoggerFactory.getLogger(KubeAPIServer.class);
1414

15-
public static final int STARTUP_TIMEOUT = 10_000;
15+
public static final int STARTUP_TIMEOUT = 15_000;
1616

1717
private final KubeAPIServerConfig config;
1818
private final BinaryManager binaryManager;

core/src/main/java/io/javaoperatorsdk/jenvtest/process/KubeAPIServerProcess.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,11 @@ public void waitUntilDefaultNamespaceCreated() {
8989
var proc = new ProcessBuilder(binaryManager.binaries().getKubectl().getPath(), "get", "ns",
9090
"--watch").start();
9191
var procWaiter = new Thread(() -> {
92+
log.debug("Starting proc waiter thread.");
9293
try (Scanner sc = new Scanner(proc.getInputStream())) {
9394
while (sc.hasNextLine()) {
9495
String line = sc.nextLine();
96+
log.debug("kubectl ns watch: {}", line);
9597
if (line.contains("default")) {
9698
started.set(true);
9799
return;

0 commit comments

Comments
 (0)