Documentation ¶
Index ¶
- func IsDuplicateNodeError(err error) bool
- func IsNodeNotFoundError(err error) bool
- func NewController(clk clock.Clock, kubeClient client.Client, ...) corecontroller.Controller
- 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 DuplicateNodeError
- type GarbageCollect
- type Initialization
- type Launch
- type Liveness
- type NodeNotFoundError
- type Registration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDuplicateNodeError ¶
func IsNodeNotFoundError ¶
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
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 DuplicateNodeError ¶
type DuplicateNodeError struct {
ProviderID string
}
func (*DuplicateNodeError) Error ¶
func (e *DuplicateNodeError) Error() string
type GarbageCollect ¶
type GarbageCollect struct {
// contains filtered or unexported fields
}
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.
type NodeNotFoundError ¶
type NodeNotFoundError struct {
ProviderID string
}
func (*NodeNotFoundError) Error ¶
func (e *NodeNotFoundError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.