Open
Description
Situation
- Create two valid gateways:
gateway1
andgateway2
. - Create a valid
HttpRoute
calledhttproute1
with aparentRef
togateway1
. - A condition
RefsResolved: True
will appear in the parent status associated withgateway1
. - Change the
httproute1
'sparentRef
togateway2
. - A condition
RefsResolved: True
will appear in the parent status associated withgateway2
. - 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