package service
import "k8s.io/kubernetes/pkg/api/service"
Index ¶
- func GetLoadBalancerSourceRanges(service *api.Service) (netsets.IPNet, error)
- func IsAllowAll(ipnets netsets.IPNet) bool
- func NeedsHealthCheck(service *api.Service) bool
- func RequestsOnlyLocalTraffic(service *api.Service) bool
Functions ¶
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 IsAllowAll ¶
IsAllowAll checks whether the netsets.IPNet allows traffic from 0.0.0.0/0
func NeedsHealthCheck ¶
NeedsHealthCheck checks if service needs health check.
func RequestsOnlyLocalTraffic ¶
RequestsOnlyLocalTraffic checks if service requests OnlyLocal traffic.
Source Files ¶
util.go
- Version
- v1.13.9
- Published
- Aug 1, 2019
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 51 seconds ago –
Tools for package owners.