Help us shape the future of Go! Take the 2026 Go Developer Survey

service

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearExternalTrafficPolicy added in v1.7.0

func ClearExternalTrafficPolicy(service *api.Service)

ClearExternalTrafficPolicy resets the ExternalTrafficPolicy field.

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 GetServiceHealthCheckNodePort added in v1.4.0

func GetServiceHealthCheckNodePort(service *api.Service) int32

GetServiceHealthCheckNodePort Return health check node port for service, if one exists

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 Check 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.

func SetServiceHealthCheckNodePort added in v1.7.0

func SetServiceHealthCheckNodePort(service *api.Service, hcNodePort int32)

SetServiceHealthCheckNodePort sets the given health check node port on service. It does not check whether this service needs healthCheckNodePort.

Types

This section is empty.

Jump to

Keyboard shortcuts

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