kubernetes: github.com/meirf/kubernetes/pkg/cloudprovider/controller Index | Files

package controller

import "github.com/meirf/kubernetes/pkg/cloudprovider/controller"

Package controller contains code for syncing cloud instances with minion registry


Package Files

doc.go minioncontroller.go

type MinionController Uses

type MinionController struct {
    // contains filtered or unexported fields

func NewMinionController Uses

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 Uses

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

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

func (*MinionController) SyncCloud Uses

func (s *MinionController) SyncCloud() error

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

func (*MinionController) SyncStatic Uses

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

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

Package controller imports 7 packages (graph). Updated 2017-11-29. Refresh now. Tools for package owners.