Skip to content

Detect and report resource membership conflicts #957

@a-hilaly

Description

@a-hilaly

Feature Description

When multiple sources produce resources with the same GVK/namespace/name, kro currently silently overrides the desired state, claims membership, and overwrites source identifying labels.

Conflict scenarios:

  • different graph nodes in the same instance produce identical resources
  • different collection items from the same collection producing identical resources
  • different instances of the same RGD produce identical resources
  • different RGDs producing identical resources

Before applying, kro should check existing resources and verify membership labels (kro.run/resource-graph-definition-id, kro.run/instance-id, kro.run/node-id, kro.run/collection-index) match. On mismatch, fail and surface the error in instance status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions