healthchecksl4

package
v1.23.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	L4ILBIPv6HCRange   = "2600:2d00:1:b029::/64"
	L4NetLBIPv6HCRange = "2600:1901:8001::/48"
)

Variables

This section is empty.

Functions

func Fake

func Fake(cloud *gce.Cloud, recorder record.EventRecorder) *l4HealthChecks

Fake creates instance of l4HealthChecks with independent lock. Use for test only.

func NewL4HealthChecks

func NewL4HealthChecks(cloud *gce.Cloud, recorder record.EventRecorder) *l4HealthChecks

Types

type EnsureHealthCheckResult added in v1.21.0

type EnsureHealthCheckResult struct {
	HCName                 string
	HCLink                 string
	HCFirewallRuleName     string
	HCFirewallRuleIPv6Name string
	GceResourceInError     string
	Err                    error
}

type L4HealthChecks

type L4HealthChecks interface {
	// EnsureHealthCheckWithFirewall creates health check (and firewall rule) for l4 service.
	EnsureHealthCheckWithFirewall(svc *v1.Service, namer namer.L4ResourcesNamer, sharedHC bool, scope meta.KeyType, l4Type utils.L4LBType, nodeNames []string) *EnsureHealthCheckResult
	// EnsureHealthCheckWithDualStackFirewalls creates health check (and firewall rule) for l4 service. Handles both IPv4 and IPv6.
	EnsureHealthCheckWithDualStackFirewalls(svc *v1.Service, namer namer.L4ResourcesNamer, sharedHC bool, scope meta.KeyType, l4Type utils.L4LBType, nodeNames []string, needsIPv4 bool, needsIPv6 bool) *EnsureHealthCheckResult
	// DeleteHealthCheckWithFirewall deletes health check (and firewall rule) for l4 service.
	DeleteHealthCheckWithFirewall(svc *v1.Service, namer namer.L4ResourcesNamer, sharedHC bool, scope meta.KeyType, l4Type utils.L4LBType) (string, error)
	// DeleteHealthCheckWithDualStackFirewalls deletes health check (and firewall rule) for l4 service, deletes IPv6 firewalls if asked.
	DeleteHealthCheckWithDualStackFirewalls(svc *v1.Service, namer namer.L4ResourcesNamer, sharedHC bool, scope meta.KeyType, l4Type utils.L4LBType) (string, error)
}

L4HealthChecks defines methods for creating and deleting health checks (and their firewall rules) for l4 services

Jump to

Keyboard shortcuts

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