Documentation
¶
Index ¶
- func IsStartupTaintRemoved(node *v1.Node, machine *v1alpha5.Machine) (*v1.Taint, bool)
- func NewController(clk clock.Clock, kubeClient client.Client, ...) corecontroller.Controller
- func PopulateMachineDetails(machine, retrieved *v1alpha5.Machine)
- func RequestedResourcesRegistered(node *v1.Node, machine *v1alpha5.Machine) (v1.ResourceName, bool)
- type Controller
- func (c *Controller) Builder(ctx context.Context, m manager.Manager) corecontroller.Builder
- func (c *Controller) Finalize(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)
- func (*Controller) Name() string
- func (c *Controller) Reconcile(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)
- type Initialization
- type Launch
- type Liveness
- type Registration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStartupTaintRemoved ¶ added in v0.27.1
IsStartupTaintRemoved returns true if there are no startup taints registered for the provisioner, or if all startup taints have been removed from the node
func NewController ¶
func NewController(clk clock.Clock, kubeClient client.Client, cloudProvider cloudprovider.CloudProvider, terminator *terminator.Terminator, recorder events.Recorder) corecontroller.Controller
NewController is a constructor for the Machine Controller
func PopulateMachineDetails ¶ added in v0.27.1
func RequestedResourcesRegistered ¶ added in v0.27.1
RequestedResourcesRegistered returns true if there are no extended resources on the node, or they have all been registered by device plugins
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a Machine Controller
func (*Controller) Builder ¶
func (c *Controller) Builder(ctx context.Context, m manager.Manager) corecontroller.Builder
func (*Controller) Name ¶
func (*Controller) Name() string
type Initialization ¶
type Initialization struct {
// contains filtered or unexported fields
}
func (*Initialization) Reconcile ¶
func (i *Initialization) Reconcile(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)
Reconcile checks for initialization based on if: a) its current status is set to Ready b) all the startup taints have been removed from the node c) all extended resources have been registered This method handles both nil provisioners and nodes without extended resources gracefully.