Skip to content

Commit d59922e

Browse files
committed
feat: parameterize ManagedWorkflowFactory by configuration type
1 parent 6e809ab commit d59922e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/dependent/DependentResourceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import static io.javaoperatorsdk.operator.api.config.dependent.DependentResourceConfigurationResolver.configure;
88

99
@SuppressWarnings({"rawtypes", "unchecked"})
10-
public interface DependentResourceFactory<C extends ControllerConfiguration> {
10+
public interface DependentResourceFactory<C extends ControllerConfiguration<?>> {
1111

1212
DependentResourceFactory DEFAULT = new DependentResourceFactory() {};
1313

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/workflow/ManagedWorkflowFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io.fabric8.kubernetes.client.KubernetesClient;
44
import io.javaoperatorsdk.operator.api.config.ControllerConfiguration;
55

6-
public interface ManagedWorkflowFactory {
6+
public interface ManagedWorkflowFactory<C extends ControllerConfiguration<?>> {
77

88
@SuppressWarnings({"rawtypes", "unchecked"})
99
ManagedWorkflowFactory DEFAULT = (configuration) -> {
@@ -30,6 +30,6 @@ public Workflow resolve(KubernetesClient client, ControllerConfiguration configu
3030
};
3131

3232
@SuppressWarnings("rawtypes")
33-
ManagedWorkflow workflowFor(ControllerConfiguration configuration);
33+
ManagedWorkflow workflowFor(C configuration);
3434
}
3535

0 commit comments

Comments
 (0)