Skip to content

Commit d954c07

Browse files
committed
Don't install a shutdown hook by default operator-framework#434
1 parent 255c69f commit d954c07

File tree

1 file changed

+2
-0
lines changed
  • operator-framework-core/src/main/java/io/javaoperatorsdk/operator

1 file changed

+2
-0
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/Operator.java

+2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ public Operator(KubernetesClient k8sClient, ConfigurationService configurationSe
2727
this.k8sClient = k8sClient;
2828
this.configurationService = configurationService;
2929
this.closeables = new ArrayList<>();
30+
}
3031

32+
public void installShutdownHook() {
3133
Runtime.getRuntime().addShutdownHook(new Thread(this::close));
3234
}
3335

0 commit comments

Comments
 (0)