neg

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 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

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{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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