File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11package io .javaoperatorsdk .operator .processing ;
22
3+ import io .fabric8 .kubernetes .api .model .KubernetesResourceList ;
4+ import io .fabric8 .kubernetes .client .dsl .MixedOperation ;
5+ import io .fabric8 .kubernetes .client .dsl .Resource ;
36import java .io .Closeable ;
47import java .io .IOException ;
58import java .util .Objects ;
@@ -84,6 +87,10 @@ public KubernetesClient getClient() {
8487 return k8sClient ;
8588 }
8689
90+ public MixedOperation <R , KubernetesResourceList <R >, Resource <R >> getCRClient () {
91+ return k8sClient .resources (configuration .getCustomResourceClass ());
92+ }
93+
8794 /**
8895 * Registers the specified controller with this operator, overriding its default configuration by
8996 * the specified one (usually created via
You can’t perform that action at this time.
0 commit comments