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" RequirementsDrifted cloudprovider.DriftReason = "RequirementsDrifted" )
Variables ¶
This section is empty.
Functions ¶
func NewMachineController ¶ added in v0.30.0
func NewMachineController(clk clock.Clock, kubeClient client.Client, cluster *state.Cluster, cloudProvider cloudprovider.CloudProvider) corecontroller.Controller
func NewNodeClaimController ¶ added in v0.30.0
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 ¶ added in v0.30.0
type MachineController struct {
*Controller
}
func (*MachineController) Name ¶ added in v0.30.0
func (c *MachineController) Name() string
type NodeClaimController ¶ added in v0.30.0
type NodeClaimController struct {
*Controller
}
func (*NodeClaimController) Builder ¶ added in v0.30.0
func (c *NodeClaimController) Builder(ctx context.Context, m manager.Manager) corecontroller.Builder
func (*NodeClaimController) Name ¶ added in v0.30.0
func (c *NodeClaimController) Name() string
Click to show internal directories.
Click to hide internal directories.