Skip to content

Move sorting Gateway API resources to the Provider layer #6690

@arkodg

Description

@arkodg

Description:

Describe the issue.

Today, we sort Gateway API resources in the gateway-api layer to ensure stable order in the IR
#6599

This responsibility can be moved to the provider layer to ensure resources are sorted when consumed by the gateway-api layer

This avoids

  • the need for a custom XDS IR Equal function that performs DeepCopy and sort
    func (x *Xds) Equal(y *Xds) bool {
    using more CPU and memory
  • out of order provider resources will now be in order, avoiding a redundant gateway-api translation and a status update, taken care by watchable

[optional Relevant Links:]

Any extra documentation required to understand the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions