Skip to content

Commit c464c7f

Browse files
committed
wip
1 parent 4b7d186 commit c464c7f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

+3-7
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public AbstractDependentResource() {
4141
public ReconcileResult<R> reconcile(P primary, Context<P> context) {
4242
var count = bulk ? bulkDependentResource.count(primary, context) : 1;
4343
if (bulk) {
44-
//todo do this just if it is deleter?
44+
// todo do this just if it is deleter?
4545
cleanupBulkResourcesIfRequired(count, resourceDiscriminator.size(), primary, context);
4646
adjustDiscriminators(count);
4747
}
@@ -205,12 +205,8 @@ protected R desired(P primary, Context<P> context) {
205205
}
206206

207207
protected R desired(P primary, int index, Context<P> context) {
208-
if (!bulk) {
209-
return desired(primary, context);
210-
} else {
211-
throw new IllegalStateException(
212-
"desired() with index method must be implemented for bulk DependentResource creation");
213-
}
208+
throw new IllegalStateException(
209+
"Must be implemented for bulk DependentResource creation");
214210
}
215211

216212
public AbstractDependentResource<R, P> setResourceDiscriminator(

0 commit comments

Comments
 (0)