Closed DerekTBrown closed 1 week ago
Do we need the same treatment for the conditions comparison?
Do we need the same treatment for the conditions comparison?
AFAIK, K8s preserves the order of lists in the HTTPRoute
resource. The order of status.parents
isn't guaranteed because multiple controllers could be modifying status.parents
, and there isn't a contract between the controllers as to ordering. However, status.parents[(controllerName==linkerd.io/policy-controller)].conditions
shouldn't be modified by outside controllers, so I don't think we strictly need to do order invariant comparison (since it should be in the order expected by linkerd).
All that said, it can't hurt (besides a little added complexity) to do order invariant comparison for conditions as well.
Up to you- happy to extend to cover conditions as well.
Commit Message: