Skip to content

Commit

Permalink
docs: withKubernetesClient improved docs (#2564)
Browse files Browse the repository at this point in the history

Signed-off-by: Attila Mészáros <[email protected]>
  • Loading branch information
csviri authored Oct 28, 2024
1 parent 73e3dfc commit b4c6e0d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import io.fabric8.kubernetes.api.model.HasMetadata;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.javaoperatorsdk.operator.Operator;
import io.javaoperatorsdk.operator.api.monitoring.Metrics;
import io.javaoperatorsdk.operator.api.reconciler.dependent.DependentResourceFactory;

Expand Down Expand Up @@ -121,6 +122,10 @@ public ConfigurationServiceOverrider withWorkflowExecutorService(
/**
* Replaces the default {@link KubernetesClient} instance by the specified one. This is the
* preferred mechanism to configure which client will be used to access the cluster.
* <p>
* Note that when {@link Operator#stop()} is called, by default the client is closed even if
* explicitly provided with this method. Use {@link #withCloseClientOnStop(boolean)} to change
* this behavior.
*
* @param client the fully configured client to use for cluster access
* @return this {@link ConfigurationServiceOverrider} for chained customization
Expand Down

0 comments on commit b4c6e0d

Please sign in to comment.