Skip to content

Remove OwnerReference dependency between Endpoint and BMC #1022

Description

@coderabbitai

Summary

Remove the OwnerReference relationship currently established between Endpoint and BMC resources.

Rationale

With the Endpoint resource now deprecated (see PR #1019 and issue #1018) in favor of modeling endpoint information inline via BMC.spec.access, the existing OwnerReference from BMC to Endpoint (or vice versa) creates an unwanted side effect: Kubernetes garbage collection (GC) will delete the BMC object and all its dependent resources whenever the owning Endpoint is deleted. This is undesirable going forward since Endpoint is being phased out and should not be able to cascade-delete BMC and downstream objects.

Affected areas

  • Controllers/reconcilers that set the OwnerReference between Endpoint and BMC (likely in internal/controller for the BMC/Endpoint reconciliation logic).
  • Any related webhook or validation logic in internal/webhook/v1alpha1.

Acceptance criteria

  • BMC objects no longer carry an OwnerReference pointing to their associated Endpoint.
  • Deleting an Endpoint no longer triggers garbage collection of the associated BMC and its subsequent objects.
  • Existing tests are updated/added to verify that deleting an Endpoint does not cascade-delete the BMC.

References

Requested by: @afritzler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Backlog
    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions