Documentation ¶
Index ¶
- Variables
- func NewController(kubeClient client.Client, cloudProvider cloudprovider.CloudProvider, ...) operatorcontroller.Controller
- type Controller
- func (c *Controller) Builder(_ context.Context, m manager.Manager) operatorcontroller.Builder
- func (c *Controller) Finalize(ctx context.Context, node *v1.Node) (reconcile.Result, error)
- func (c *Controller) Name() string
- func (c *Controller) Reconcile(_ context.Context, _ *v1.Node) (reconcile.Result, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TerminationSummary = prometheus.NewSummaryVec( prometheus.SummaryOpts{ Namespace: "karpenter", Subsystem: "nodes", Name: "termination_time_seconds", Help: "The time taken between a node's deletion request and the removal of its finalizer", Objectives: metrics.SummaryObjectives(), }, []string{metrics.NodePoolLabel}, ) )
Functions ¶
func NewController ¶
func NewController(kubeClient client.Client, cloudProvider cloudprovider.CloudProvider, terminator *terminator.Terminator, recorder events.Recorder) operatorcontroller.Controller
NewController constructs a controller instance
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller for the resource
func (*Controller) Builder ¶
func (c *Controller) Builder(_ context.Context, m manager.Manager) operatorcontroller.Builder
func (*Controller) Name ¶
func (c *Controller) Name() string
Click to show internal directories.
Click to hide internal directories.