Skip to content
Merged
Changes from all commits
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 @@ -12,6 +12,7 @@
import io.fabric8.kubernetes.api.model.HasMetadata;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.javaoperatorsdk.operator.api.monitoring.Metrics;
import io.javaoperatorsdk.operator.api.reconciler.dependent.DependentResourceFactory;

@SuppressWarnings("unused")
public class ConfigurationServiceOverrider {
Expand Down Expand Up @@ -39,6 +40,7 @@ public class ConfigurationServiceOverrider {
private Set<Class<? extends HasMetadata>> defaultNonSSAResource;
private Boolean previousAnnotationForDependentResources;
private Boolean parseResourceVersions;
private DependentResourceFactory dependentResourceFactory;

ConfigurationServiceOverrider(ConfigurationService original) {
this.original = original;
Expand Down Expand Up @@ -77,6 +79,12 @@ public ConfigurationServiceOverrider withMinConcurrentWorkflowExecutorThreads(in
return this;
}

public ConfigurationServiceOverrider withDependentResourceFactory(
DependentResourceFactory dependentResourceFactory) {
this.dependentResourceFactory = dependentResourceFactory;
return this;
}

public ConfigurationServiceOverrider withResourceCloner(Cloner cloner) {
this.cloner = cloner;
return this;
Expand Down Expand Up @@ -184,6 +192,12 @@ public boolean checkCRDAndValidateLocalModel() {
return checkCR != null ? checkCR : original.checkCRDAndValidateLocalModel();
}

@Override
public DependentResourceFactory dependentResourceFactory() {
return dependentResourceFactory != null ? dependentResourceFactory
: DependentResourceFactory.DEFAULT;
}

@Override
public int concurrentReconciliationThreads() {
return Utils.ensureValid(
Expand Down