Documentation ¶
Index ¶
- func IsExtendedResourceRegistered(node *v1.Node, instanceType *cloudprovider.InstanceType) (v1.ResourceName, bool)
- func IsStartupTaintRemoved(node *v1.Node, provisioner *v1alpha5.Provisioner) (*v1.Taint, bool)
- func NewController(clk clock.Clock, kubeClient client.Client, ...) corecontroller.Controller
- type Controller
- type Drift
- type Emptiness
- type Finalizer
- type Initialization
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExtendedResourceRegistered ¶
func IsExtendedResourceRegistered(node *v1.Node, instanceType *cloudprovider.InstanceType) (v1.ResourceName, bool)
IsExtendedResourceRegistered returns true if there are no extended resources on the node, or they have all been registered by device plugins
func IsStartupTaintRemoved ¶
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, cluster *state.Cluster) corecontroller.Controller
NewController constructs a nodeController instance
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller manages a set of properties on karpenter provisioned nodes, such as taints, labels, finalizers.
func (*Controller) Builder ¶
func (c *Controller) Builder(ctx context.Context, m manager.Manager) corecontroller.Builder
func (*Controller) Name ¶
func (c *Controller) Name() string
type Emptiness ¶
type Emptiness struct {
// contains filtered or unexported fields
}
Emptiness is a subreconciler that deletes nodes that are empty after a ttl
type Finalizer ¶
type Finalizer struct{}
Finalizer is a subreconciler that ensures nodes have the termination finalizer. This protects against instances that launch when Karpenter fails to create the node object. In this case, the node will come online without the termination finalizer. This controller will update the node accordingly.
type Initialization ¶
type Initialization struct {
// contains filtered or unexported fields
}