Documentation ¶
Index ¶
- func ExternalPolicyLocal(service *v1.Service) bool
- func ExternallyAccessible(service *v1.Service) bool
- func GetLoadBalancerSourceRanges(service *v1.Service) (utilnet.IPNetSet, error)
- func InternalPolicyLocal(service *v1.Service) bool
- func IsAllowAll(ipnets utilnet.IPNetSet) bool
- func NeedsHealthCheck(service *v1.Service) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExternalPolicyLocal ¶ added in v1.24.0
ExternalPolicyLocal checks if service is externally accessible and has ETP = Local.
func ExternallyAccessible ¶ added in v1.29.0
ExternallyAccessible checks if service is externally accessible.
func GetLoadBalancerSourceRanges ¶
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 InternalPolicyLocal ¶ added in v1.24.0
InternalPolicyLocal checks if service has ITP = Local.
func IsAllowAll ¶
IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0
func NeedsHealthCheck ¶
NeedsHealthCheck checks if service needs health check.
Types ¶
This section is empty.