Skip to content

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

Closed

Description

@andreaTP

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.

Activity

  1. csviri commented on Sep 19, 2022

    @csviri
    Collaborator

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

    see also related PR with discriminators:
    #1378

  2. andreaTP commented on Sep 19, 2022

    @andreaTP
    CollaboratorAuthor

    You are right @csviri , closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions