Skip to content

Create Dependent Resource in Different Namespace #1917

Answered by csviri
coltmcnealy-lh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @coltmcnealy-lh , the key is not to implement GarbageCollected interface. So not use CRUDKubernetesDependentResource. 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

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@csviri
Comment options

@coltmcnealy-lh
Comment options

@csviri
Comment options

@coltmcnealy-lh
Comment options

@csviri
Comment options

Answer selected by coltmcnealy-lh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants