address

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL