Closed
Description
Bug Report
On Operator SDK 4.2.0 (commit: 061db9c):
I want to implement a Resource
public class SomeResourceDependentResource extends CRUDKubernetesDependentResource<X, Y>
implements BulkDependentResource<X, Y>
{
... desiredResources(...)
... getSecondaryResources(...)
}
And use it as a Managed Resource with a reconcilePrecondition
@ControllerConfiguration(
dependents = {
@Dependent(
name = "SomeResource",
type = SomeResourceDependentResource.class
reconcilePrecondition = SomePrecondition.class
),
})
As soon as the reconcilePrecondition is configured, the SomeResourceDependentResource fails, since it is not handled as a BulkDependentResource but as a normal DependentReousource. So the getSecondaryResource() is called, instead the getSecondaryResources(), which leads to errors.
What did you expect to see?
Being able to use reconcilePrecondition with BulkDependentResource.