controller

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package controller contains code for syncing cloud instances with minion registry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeController added in v0.9.2

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

func NewNodeController added in v0.9.2

func NewNodeController(
	cloud cloudprovider.Interface,
	matchRE string,
	nodes []string,
	staticResources *api.NodeResources,
	kubeClient client.Interface) *NodeController

NewNodeController returns a new node controller to sync instances from cloudprovider.

func (*NodeController) Run added in v0.9.2

func (s *NodeController) Run(period time.Duration)

Run starts syncing instances from cloudprovider periodically, or create initial node list.

func (*NodeController) SyncCloud added in v0.9.2

func (s *NodeController) SyncCloud() error

SyncCloud syncs list of instances from cloudprovider to master etcd registry.

func (*NodeController) SyncStatic added in v0.9.2

func (s *NodeController) SyncStatic(period time.Duration) error

SyncStatic registers list of machines from command line flag. It returns after successful registration of all machines.

Jump to

Keyboard shortcuts

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