controller

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2014 License: Apache-2.0 Imports: 7 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 MinionController

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

func NewMinionController

func NewMinionController(
	cloud cloudprovider.Interface,
	matchRE string,
	minions []string,
	staticResources *api.NodeResources,
	kubeClient client.Interface) *MinionController

NewMinionController returns a new minion controller to sync instances from cloudprovider.

func (*MinionController) Run

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

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

func (*MinionController) Sync

func (s *MinionController) Sync() error

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

Jump to

Keyboard shortcuts

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