machineset

package
v0.0.0-...-86ffc8e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MachineSetController

type MachineSetController struct {
	Name string

	BeforeReconcile func(key string)
	AfterReconcile  func(key string, err error)

	Informers *sharedinformers.SharedInformers
	// contains filtered or unexported fields
}

MachineSetController implements the controller.MachineSetController interface

func NewMachineSetController

func NewMachineSetController(config *rest.Config, si *sharedinformers.SharedInformers) *MachineSetController

NewController returns a new MachineSetController for responding to MachineSet events

func (*MachineSetController) GetName

func (c *MachineSetController) GetName() string

func (*MachineSetController) LookupAndReconcile

func (c *MachineSetController) LookupAndReconcile(key string) (err error)

func (*MachineSetController) Run

func (c *MachineSetController) Run(stopCh <-chan struct{})

type MachineSetControllerImpl

type MachineSetControllerImpl struct {
	builders.DefaultControllerFns
	// contains filtered or unexported fields
}

+controller:group=cluster,version=v1alpha1,kind=MachineSet,resource=machinesets

func (*MachineSetControllerImpl) Get

func (c *MachineSetControllerImpl) Get(namespace, name string) (*v1alpha1.MachineSet, error)

func (*MachineSetControllerImpl) Init

Init initializes the controller and is called by the generated code Register watches for additional resource types here.

func (*MachineSetControllerImpl) Reconcile

func (c *MachineSetControllerImpl) Reconcile(machineSet *v1alpha1.MachineSet) error

Reconcile holds the controller's business logic. it makes sure that the current state is equal to the desired state. note that the current state of the cluster is calculated based on the number of machines that are owned by the given machineSet (key).

Jump to

Keyboard shortcuts

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