Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ default <R> Stream<R> getSecondaryResourcesAsStream(Class<R> expectedType) {

KubernetesClient getClient();

KubernetesClientFacade<P> getClientFacade();

/** ExecutorService initialized by framework for workflows. Used for workflow standalone mode. */
ExecutorService getWorkflowExecutorService();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class DefaultContext<P extends HasMetadata> implements Context<P> {
private final boolean primaryResourceDeleted;
private final boolean primaryResourceFinalStateUnknown;
private final Map<DependentResource<?, P>, Object> desiredStates = new ConcurrentHashMap<>();
private final KubernetesClientFacade<P> clientFacade;

public DefaultContext(
RetryInfo retryInfo,
Expand All @@ -61,6 +62,7 @@ public DefaultContext(
this.primaryResourceFinalStateUnknown = primaryResourceFinalStateUnknown;
this.defaultManagedDependentResourceContext =
new DefaultManagedWorkflowAndDependentResourceContext<>(controller, primaryResource, this);
this.clientFacade = new KubernetesClientFacade<>(this);
}

@Override
Expand Down Expand Up @@ -124,6 +126,11 @@ public KubernetesClient getClient() {
return controller.getClient();
}

@Override
public KubernetesClientFacade<P> getClientFacade() {
return null;
}

@Override
public ExecutorService getWorkflowExecutorService() {
// note that this should be always received from executor service manager, so we are able to do
Expand Down
Loading
Loading