contour icon indicating copy to clipboard operation
contour copied to clipboard

Route status conditions about detached parentRef

Open vaniog opened this issue 8 months ago • 2 comments

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

vaniog avatar Feb 19 '25 13:02 vaniog