Skip to content

Add Endpoint as a resource with no spec for dependent resources #1982

Closed
@csviri

Description

@csviri

Reported by used:

ERROR ReconciliationDispatcher.java (64) Error during event processing ExecutionScope{ resource id: ResourceID{name='test-resource', namespace='default'}, version: 42334818} failed.
io.javaoperatorsdk.operator.AggregatedOperatorException: Exception(s) during workflow execution. Details:
 
com.example.test.PostgresEndpoint -> java.lang.IllegalStateException: No spec found on resource io.fabric8.kubernetes.api.model.Endpoints
  at io.javaoperatorsdk.operator.ReconcilerUtils.noSpecException(ReconcilerUtils.java:146)
  at io.javaoperatorsdk.operator.ReconcilerUtils.getSpec(ReconcilerUtils.java:111)
  at io.javaoperatorsdk.operator.processing.dependent.kubernetes.ResourceUpdatePreProcessor.matches(ResourceUpdatePreProcessor.java:18)...
Caused by: java.lang.NoSuchMethodException: io.fabric8.kubernetes.api.model.Endpoints.getSpec()
    at java.base/java.lang.Class.getMethod(Class.java:2108)
    at io.javaoperatorsdk.operator.ReconcilerUtils.getSpec(ReconcilerUtils.java:108)
    ... 15 more
    

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions