Create Dependent Resource in Different Namespace #1917
-
How do I create a Dependent Resource in a different namespace than the Primary? The use-case is that I need to create a Certificate in the Currently, using the "Managed Dependent Resource" feature, if the namespace in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @coltmcnealy-lh , the key is not to implement Note that in this case the default behavior is to add annotations to handle the related behavior, deleting the resouce: |
Beta Was this translation helpful? Give feedback.
Hi @coltmcnealy-lh , the key is not to implement
GarbageCollected
interface. So not useCRUDKubernetesDependentResource
. owner reference if added only in that case.Note that in this case the default behavior is to add annotations to handle the related behavior, deleting the resouce:
https://github.com/java-operator-sdk/java-operator-sdk/blob/5a8ae993b9b1cc3f56ce4c784f85b15910b1c9bb/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/KubernetesDependentResource.java#L204-L204