Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
csviri opened this issue Jul 27, 2023 · 3 comments · Fixed by #1990
Closed

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

csviri opened this issue Jul 27, 2023 · 3 comments · Fixed by #1990
Assignees

Comments

@csviri
Copy link
Collaborator

csviri commented Jul 27, 2023

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
    
@csviri csviri self-assigned this Jul 27, 2023
@csviri csviri linked a pull request Aug 1, 2023 that will close this issue
@metacosm
Copy link
Collaborator

metacosm commented Aug 8, 2023

We probably need to push for HasSpec & HasStatus support in the fabric8 client to address these issues once and for all.

@csviri
Copy link
Collaborator Author

csviri commented Aug 8, 2023

We probably need to push for HasSpec & HasStatus support in the fabric8 client to address these issues once and for all.

totally, comes up again and again, can pick it up after the helm issue

@metacosm
Copy link
Collaborator

metacosm commented Aug 8, 2023

Yes, there's another similar issue in QOSDK and RBAC generation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants