service

package
v1.32.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 186

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternallyAccessible added in v1.29.0

func ExternallyAccessible(service *api.Service) bool

ExternallyAccessible checks if service is externally accessible.

func GetLoadBalancerSourceRanges

func GetLoadBalancerSourceRanges(service *api.Service) (utilnet.IPNetSet, 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 GetWarningsForService added in v1.27.0

func GetWarningsForService(service, oldService *api.Service) []string

func IsAllowAll

func IsAllowAll(ipnets utilnet.IPNetSet) bool

IsAllowAll checks whether the utilnet.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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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