Skip to content

Commit eb79060

Browse files
committed
Remove stop method from Operator - Operator does not create the kubernetes client anymore, so it should not close it either.
1 parent e6868b5 commit eb79060

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

operator-framework/src/main/java/com/github/containersolutions/operator/Operator.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ public Map<Class<? extends CustomResource>, CustomResourceOperationsImpl> getCus
9999
return customResourceClients;
100100
}
101101

102-
public void stop() {
103-
k8sClient.close();
104-
}
105-
106102
public <T extends CustomResource> CustomResourceOperationsImpl getCustomResourceClients(Class<T> customResourceClass) {
107103
return customResourceClients.get(customResourceClass);
108104
}

operator-framework/src/test/java/com/github/containersolutions/operator/IntegrationTestSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void cleanup() {
8686
}
8787

8888
public void teardown() {
89-
operator.stop();
89+
k8sClient.close();
9090
}
9191

9292
private <T> T loadYaml(Class<T> clazz, String yaml) {

0 commit comments

Comments
 (0)