Skip to content

How to define multiple Dependent Resources of the same type #1473

New issue

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

By clicking “No 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? No Sign in to your account

Closed
andreaTP opened this issue Sep 16, 2022 · 2 comments
Closed

How to define multiple Dependent Resources of the same type #1473

andreaTP opened this issue Sep 16, 2022 · 2 comments

Comments

@andreaTP
Copy link
Collaborator

Bug Report

Trying to define multiple DependentResources of the same type (same class), seems to trigger the reconciliation loop continuously.

What did you do?

Enabled a 3rd dependent resource (which is again a Secret like the first one).
https://github.com/andreaTP/bink8s/blob/0177a66e4b31225c0b5a91e5694e80a3d3127df4/src/main/java/io/bink8s/controller/ImageBuildController.java#L17-L35

What did you expect to see?

The resource should be handled autonomously.
Also it should probably be possible to discriminate the secondary resource here:
https://github.com/andreaTP/bink8s/blob/0177a66e4b31225c0b5a91e5694e80a3d3127df4/src/main/java/io/bink8s/controller/workflow/ImageBuildSecretExistsReadyCondition.java#L17
(based on the name?)

What did you see instead? Under which circumstances?

The reconcile loop is triggered continuously.

Environment

Kubernetes cluster type:
minikube

$ Mention java-operator-sdk version from pom.xml file

Quarkus SDK 4.0.1

$ java -version
11

I might be doing something wrong, but I'm not sure how to debug it.

@csviri
Copy link
Collaborator

csviri commented Sep 19, 2022

thx for the issue, however this is a duplicate:
This is a duplicate: #857

see also related PR with discriminators:
#1378

@andreaTP
Copy link
Collaborator Author

You are right @csviri , closing as duplicate.

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

No branches or pull requests

2 participants