Skip to content

Route status conditions about detached parentRef #6905

Open
@vaniog

Description

@vaniog

Situation

  • Create two valid gateways: gateway1 and gateway2.
  • Create a valid HttpRoute called httproute1 with a parentRef to gateway1.
  • A condition RefsResolved: True will appear in the parent status associated with gateway1.
  • Change the httproute1's parentRef to gateway2.
  • A condition RefsResolved: True will appear in the parent status associated with gateway2.
  • The condition related to gateway1 does not disappear.

What did you expect to happen:
Old condition to disappear.

Anything else you would like to add:
I believe the issue is with this (https://github.com/projectcontour/contour/blob/main/internal/status/routeconditions.go#L145) function, which seems to ignore other parent statuses. As a result, the parent status related to the non-existent parentRef persists indefinitely.

Environment:
contour 19.5.6
kubernetes client v1.27.3
kubernetes server v1.29.1
yandex.cloud
ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/needs-triageIndicates that an issue needs to be triaged by a project contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions