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

Commit 96f90a9

Browse files
committed
fix: no cleanup of config if not updated
1 parent 92a333a commit 96f90a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ public void stop() {
5555
log.debug("Stopping");
5656
kubeApiServerProcess.stopApiServer();
5757
etcdProcess.stopEtcd();
58-
kubeConfig.restoreKubeConfig();
58+
if (config.isUpdateKubeConfig()) {
59+
kubeConfig.restoreKubeConfig();
60+
}
5961
etcdProcess.cleanEtcdData();
6062
log.debug("Stopped");
6163
}

0 commit comments

Comments
 (0)