translator

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServicePort added in v1.2.2

func ServicePort(svc api_v1.Service, port intstr.IntOrString) *api_v1.ServicePort

ServicePort is a helper function that retrieves a port of a Service.

Types

type Translator added in v1.2.2

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

Translator helps with kubernetes -> gce api conversion.

func NewTranslator added in v1.2.2

func NewTranslator(ctx *context.ControllerContext) *Translator

NewTranslator returns a new Translator.

func (*Translator) GatherEndpointPorts added in v1.2.2

func (t *Translator) GatherEndpointPorts(svcPorts []utils.ServicePort) []string

GatherEndpointPorts returns all ports needed to open NEG endpoints.

func (*Translator) GetProbe added in v1.2.2

func (t *Translator) GetProbe(port utils.ServicePort) (*api_v1.Probe, error)

GetProbe returns a probe that's used for the given nodeport

func (*Translator) GetZoneForNode added in v1.2.2

func (t *Translator) GetZoneForNode(name string) (string, error)

GetZoneForNode returns the zone for a given node by looking up its zone label.

func (*Translator) ListZones added in v1.2.2

func (t *Translator) ListZones() ([]string, error)

ListZones returns a list of zones this Kubernetes cluster spans.

func (*Translator) TranslateIngress added in v1.2.2

func (t *Translator) TranslateIngress(ing *extensions.Ingress, systemDefaultBackend utils.ServicePortID) (*utils.GCEURLMap, []error)

TranslateIngress converts an Ingress into our internal UrlMap representation.

Jump to

Keyboard shortcuts

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