app

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 35 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBackendServicePortID added in v1.2.2

func DefaultBackendServicePortID(kubeClient kubernetes.Interface) utils.ServicePortID

DefaultBackendServicePortID returns the tuple of service namespace/name and port which will be used as the default backend for load balancers.

func NewGCEClient

func NewGCEClient() *gce.Cloud

NewGCEClient returns a client to the GCE environment. This will block until a valid configuration file can be read.

func NewKubeConfig added in v1.2.2

func NewKubeConfig() (*rest.Config, error)

NewKubeConfig returns a Kubernetes client config given the command line settings.

func NewNamer

func NewNamer(kubeClient kubernetes.Interface, clusterName, fwName string) (*utils.Namer, error)

NewNamer returns a new naming policy given the state of the cluster.

func NewStaticNamer added in v1.6.0

func NewStaticNamer(kubeClient kubernetes.Interface, clusterName, fwName string) (*utils.Namer, error)

NewStaticNamer returns a new naming policy given a snapshot of cluster state. Note that this implementation does not dynamically change the naming policy based on changes in cluster state.

func RunHTTPServer

func RunHTTPServer(healthChecker func() context.HealthCheckResults)

RunHTTPServer starts an HTTP server. `healthChecker` returns a mapping of component/controller name to the result of its healthcheck.

func RunSIGTERMHandler

func RunSIGTERMHandler(lbc *controller.LoadBalancerController, deleteAll bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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