Skip to content

Commit 87e6ae8

Browse files
committed
fix: issues after merge
1 parent a6013d8 commit 87e6ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/processors/GenericResourceUpdatePreProcessor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import io.fabric8.kubernetes.api.model.rbac.Role;
1212
import io.fabric8.kubernetes.api.model.rbac.RoleBinding;
1313
import io.javaoperatorsdk.operator.ReconcilerUtils;
14-
import io.javaoperatorsdk.operator.api.config.ConfigurationServiceProvider;
1514
import io.javaoperatorsdk.operator.api.reconciler.Context;
1615
import io.javaoperatorsdk.operator.processing.dependent.kubernetes.ResourceUpdatePreProcessor;
1716

@@ -40,7 +39,8 @@ public static <R extends HasMetadata> ResourceUpdatePreProcessor<R> processorFor
4039
}
4140

4241
public R replaceSpecOnActual(R actual, R desired, Context<?> context) {
43-
var clonedActual = ConfigurationServiceProvider.instance().getResourceCloner().clone(actual);
42+
var clonedActual = context.getControllerConfiguration().getConfigurationService()
43+
.getResourceCloner().clone(actual);
4444
updateClonedActual(clonedActual, desired);
4545
return clonedActual;
4646
}

0 commit comments

Comments
 (0)