Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ACLEqual ¶
func ACLEqual(a, b []*lb.ACL) bool
ACLEqual compares two slices of pointers to lb.ACL objects. It returns true if both slices contain the same ACLs, regardless of order.
func IPsEqual ¶
IPsEqual compares two slices of pointers to strings representing IP addresses. It returns true if both slices contain the same IP addresses, regardless of order.
func LBSpec ¶
func LBSpec(c client.Zones, spec infrav1.LoadBalancerSpec) (zone scw.Zone, lbType string, err error)
LBSpec returns the zone and type of the LoadBalancer based on the provided LoadBalancerSpec. If the zone is not specified in the spec, it defaults to the zone of the Scaleway client. If the type is not specified, it defaults to lbDefaultType.
func MainLBSpec ¶
func MainLBSpec(c client.Zones, scalewayCluster *infrav1.ScalewayCluster) (zone scw.Zone, lbType string, err error)
MainLBSpec returns the zone and type of the main LoadBalancer for the ScalewayCluster.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.