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 ¶
func (c *MachineSetControllerImpl) Init(arguments sharedinformers.ControllerInitArguments)
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).
Click to show internal directories.
Click to hide internal directories.