contour
contour copied to clipboard
Route status conditions about detached parentRef
Situation
- Create two valid gateways:
gateway1andgateway2. - Create a valid
HttpRoutecalledhttproute1with aparentReftogateway1. - A condition
RefsResolved: Truewill appear in the parent status associated withgateway1. - Change the
httproute1'sparentReftogateway2. - A condition
RefsResolved: Truewill appear in the parent status associated withgateway2. - The condition related to
gateway1does 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