Skip to content

HTTPRoute BackendRefs validation and potentially inconsistent view when backend is removed. #3433

Open
@dawid-nowak

Description

@dawid-nowak

I think a following scenario would need to be validated with respect to HTTPRoute and BackendRefs. The documentation is very vague here what should happen here.

  1. We add a HTTPRoute with valid BackendRefs, everything is good and the tests are passing.
  2. We remove the backend/object referenced by BackendRefs. The route is now invalid but it will not be updated since we would need to register for notifications about the removal of the referenced object.
  3. Which leaves the gateway in an inconsistent state.

Alternatively, we should drop validation of BackendRefs. So then the conditions don't need to be updated and the gateway doesn't care if the backend exists or it doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/conformance-testIssues or PRs related to Conformance tests.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.triage/needs-informationIndicates an issue needs more information in order to work on it.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions