Skip to content

Commit 301c744

Browse files
committed
feat: give access to the operator's client and configuration
1 parent 8878ab4 commit 301c744

File tree

1 file changed

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

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ public Operator(KubernetesClient k8sClient, ConfigurationService configurationSe
3232
Runtime.getRuntime().addShutdownHook(new Thread(this::close));
3333
}
3434

35+
public KubernetesClient getKubernetesClient() {
36+
return k8sClient;
37+
}
38+
39+
public ConfigurationService getConfigurationService() {
40+
return configurationService;
41+
}
42+
3543
/**
3644
* Finishes the operator startup process. This is mostly used in injection-aware applications
3745
* where there is no obvious entrypoint to the application which can trigger the injection process

0 commit comments

Comments
 (0)