-
Couldn't load subscription status.
- Fork 232
Closed
Description
I have a reconciler that extends KubernetesCRUDNoGCDependentResource. The created dependent has the following annotations:
metadata:
annotations:
io.javaoperatorsdk/primary-name: my-thing
io.javaoperatorsdk/primary-namespace: my-namespace
In my operator, I have several different CustomResourceDefinitions and reconcilers. Therefore, I can and do have multiple custom resources in the my-namespace namespace called my-thing.
In my own code, I need to determine the owner of these resources. I can solve that by putting labels/annotations on them myself (this is quite a bit of work). However, I imagine that this is likely a vulnerability to bugs.
Proposed Solution
Add another annotation to NoGC resources and use that for determining ownership:
metadata:
annotations:
io.javaoperatorsdk/primary-type: MyCustomResource
metacosm and csviri
Metadata
Metadata
Assignees
Labels
No labels