Kong / gateway-operator

Kubernetes Operator for Kong Gateways
Apache License 2.0
43 stars 9 forks source link

Gateway (and DataPlane) sorting and address priority #196

Open shaneutt opened 1 year ago

shaneutt commented 1 year ago

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

Related Issues

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

Acceptance Criteria

randmonkey commented 1 year ago

Are orders within same type (loadbalancer IPs, cluster IPs) defined here? LoadBalancer services could have multiple ingress addresses, and a service can have 2 cluster IPs if dualstack is supported.

shaneutt commented 1 year ago

Are orders within same type (loadbalancer IPs, cluster IPs) defined here? LoadBalancer services could have multiple ingress addresses, and a service can have 2 cluster IPs if dualstack is supported.

This was meant to encompass the situation where there are multiple LoadBalancer ips, yes. As for dual stack that one's a bit trickier since it gets so little use, but I think if you're up for it you could do that here as well.