Documentation
¶
Index ¶
- Constants
- func NewMachineController(clk clock.Clock, kubeClient client.Client, cluster *state.Cluster, ...) corecontroller.Controller
- func NewNodeClaimController(clk clock.Clock, kubeClient client.Client, cluster *state.Cluster, ...) corecontroller.Controller
- type Controller
- type Drift
- type Emptiness
- type Expiration
- type MachineController
- type NodeClaimController
Constants ¶
View Source
const ( ProvisionerDrifted cloudprovider.DriftReason = "ProvisionerDrifted" NodePoolDrifted cloudprovider.DriftReason = "NodePoolDrifted" RequirementsDrifted cloudprovider.DriftReason = "RequirementsDrifted" )
Variables ¶
This section is empty.
Functions ¶
func NewMachineController ¶
func NewMachineController(clk clock.Clock, kubeClient client.Client, cluster *state.Cluster, cloudProvider cloudprovider.CloudProvider) corecontroller.Controller
func NewNodeClaimController ¶
func NewNodeClaimController(clk clock.Clock, kubeClient client.Client, cluster *state.Cluster, cloudProvider cloudprovider.CloudProvider) corecontroller.Controller
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a disruption controller that adds StatusConditions to Machines when they meet certain disruption conditions e.g. When the NodeClaim has surpassed its owning provisioner's expirationTTL, then it is marked as "Expired" in the StatusConditions
func NewController ¶
func NewController(clk clock.Clock, kubeClient client.Client, cluster *state.Cluster, cloudProvider cloudprovider.CloudProvider) *Controller
NewController constructs a machine disruption controller
func (*Controller) Builder ¶
func (c *Controller) Builder(ctx context.Context, m manager.Manager) corecontroller.Builder
type Drift ¶
type Drift struct {
// contains filtered or unexported fields
}
Drift is a machine sub-controller that adds or removes status conditions on drifted machines
type Emptiness ¶
type Emptiness struct {
// contains filtered or unexported fields
}
Emptiness is a machine sub-controller that adds or removes status conditions on empty machines based on TTLSecondsAfterEmpty
type Expiration ¶
type Expiration struct {
// contains filtered or unexported fields
}
Expiration is a machine sub-controller that adds or removes status conditions on expired machines based on TTLSecondsUntilExpired
type MachineController ¶
type MachineController struct {
*Controller
}
func (*MachineController) Name ¶
func (c *MachineController) Name() string
type NodeClaimController ¶
type NodeClaimController struct {
*Controller
}
func (*NodeClaimController) Builder ¶
func (c *NodeClaimController) Builder(ctx context.Context, m manager.Manager) corecontroller.Builder
func (*NodeClaimController) Name ¶
func (c *NodeClaimController) Name() string
Click to show internal directories.
Click to hide internal directories.