Skip to content

Gateway (and DataPlane) sorting and address priority #196

@shaneutt

Description

@shaneutt

Problem Statement

For the purposes of clean kubectl get gateways output we're sorting addresses for Gateways based on whether or not they are LoadBalancer addresses (IPs or Hostnames). In practice most situations will only ever have a ClusterIP and a LoadBalancer IP, so this worked during the POC/pre-alpha stage to get the basics working but in the future when we have more than 2 addresses for Gateways this is not a consistent sort, AND we need to make a decision whether hostname or IP addresses should be prioritized.

Proposed Solution

  • make the sorted of addresses for the Gateway status addresses consistent by introducing address type and address value sorting
  • decide on whether hostname or ip addresses should have the highest priority, for the purposes of kubectl get gateways quick view output

Related Issues

Not necessarily a blocker but it might be good to take care of this one first:

  • Kong/gateway-operator-archive#272

Acceptance Criteria

  • when a Service has more than 2 addresses, address sorting is consistent so that I'm not getting extra reconciles
  • the decision about which type of loadbalancer address has the highest precedence is documented

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions