Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressesFromService ¶
func AddressesFromService(service *corev1.Service) ([]operatorv1beta1.Address, error)
AddressesFromService retrieves addresses from the provided service.
Currently we create the return value in a way such that:
- service LoadBalancer addresses are added first, one by one. IPs are added first, then hostnames.
- next, all service's ClusterIPs are added.
- the result is not sorted, so the return value relies on the order in in which the addresses in the service were defined.
If this ends up being the desired logic and aligns with what has been agreed in https://github.com/Kong/gateway-operator/issues/281 then no action has to be taken. Otherwise this might need to be changed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.