neg

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNegStatus added in v1.2.2

func GetNegStatus(zones []string, portToNegs types.PortNameMap) types.NegStatus

GetNegStatus generates a NegStatus denoting the current NEGs associated with the given ports. NetworkEndpointGroups is a mapping between ServicePort and NEG name Zones is a list of zones where the NEGs exist.

func NEGServicePorts added in v1.2.2

func NEGServicePorts(ann *annotations.NegAnnotation, knownPorts types.PortNameMap) (types.PortNameMap, error)

NEGServicePorts returns the parsed ServicePorts from the annotation. knownPorts represents the known Port:TargetPort attributes of servicePorts that already exist on the service. This function returns an error if any of the parsed ServicePorts from the annotation is not in knownPorts.

func NewAdapter added in v1.4.0

NewAdapter takes a GCECloud and returns a NetworkEndpointGroupCloud.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is network endpoint group controller. It determines whether NEG for a service port is needed, then signals NegSyncerManager to sync it.

func NewController

func NewController(
	cloud negtypes.NetworkEndpointGroupCloud,
	ctx *context.ControllerContext,
	zoneGetter negtypes.ZoneGetter,
	namer negtypes.NetworkEndpointGroupNamer,
	resyncPeriod time.Duration,
	gcPeriod time.Duration,
	negSyncerType NegSyncerType) *Controller

NewController returns a network endpoint group controller.

func (*Controller) IsHealthy added in v1.2.2

func (c *Controller) IsHealthy() error

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{})

type NegSyncerType added in v1.5.0

type NegSyncerType string

NegSyncerType represents the the neg syncer type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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