Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoadBalancerSourceRanges ¶
func GetLoadBalancerSourceRanges(service *api.Service) (netsets.IPNet, error)
GetLoadBalancerSourceRanges first try to parse and verify LoadBalancerSourceRanges field from a service. If the field is not specified, turn to parse and verify the AnnotationLoadBalancerSourceRangesKey annotation from a service, extracting the source ranges to allow, and if not present returns a default (allow-all) value.
func IsAllowAll ¶
func IsAllowAll(ipnets netsets.IPNet) bool
IsAllowAll checks whether the netsets.IPNet allows traffic from 0.0.0.0/0
func NeedsHealthCheck ¶ added in v1.4.0
func NeedsHealthCheck(service *api.Service) bool
NeedsHealthCheck checks if service needs health check.
func RequestsOnlyLocalTraffic ¶ added in v1.7.0
func RequestsOnlyLocalTraffic(service *api.Service) bool
RequestsOnlyLocalTraffic checks if service requests OnlyLocal traffic.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.