gke

package
v0.0.0-...-6a55101 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UIDIndex is the name for the uid index function
	UIDIndex = "uid"
)

Variables

This section is empty.

Functions

func MetaUIDIndexFunc

func MetaUIDIndexFunc(obj interface{}) ([]string, error)

MetaUIDIndexFunc indexes by uid.

Types

type Cluster

type Cluster struct {
	ProjectID, Zone, ID string
}

Cluster contains information about a GKE cluster

func NewGKEService

func NewGKEService(clusterID, zone, projectID string) (*gke.Service, *gce.Service, Cluster, error)

NewGKEService returns a client to interact with a GKE cluster

type Controller

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

Controller is a nodeset controller for GKE node pools

func New

func New(name string, clusterID string, clusterZone string, projectID string, client nodesetclientset.Interface, nodesets nodesetinformers.NodeSetInformer) (*Controller, error)

New returns a instance of the GKE nodeset controller

func (*Controller) Run

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

Run starts the control loop. This method is blocking.

Jump to

Keyboard shortcuts

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