Documentation
¶
Index ¶
Constants ¶
View Source
const ( ControllerName = "nodeset-controller" // BackoffGCInterval is the time that has to pass before next iteration of backoff GC is run BackoffGCInterval = 1 * time.Minute )
View Source
const ( // SelectingAllReason is added to an event when a NodeSet selects all Pods. SelectingAllReason = "SelectingAll" // FailedPlacementReason is added to an event when a NodeSet cannot schedule a Pod to a specified node. FailedPlacementReason = "FailedPlacement" // FailedNodeSetPodReason is added to an event when the status of a Pod of a NodeSet is 'Failed'. FailedNodeSetPodReason = "FailedNodeSetPod" )
Reasons for NodeSet events
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeSetReconciler ¶
type NodeSetReconciler struct {
client.Client
Scheme *runtime.Scheme
ClientMap *clientmap.ClientMap
EventCh chan event.GenericEvent
// contains filtered or unexported fields
}
NodeSetReconciler reconciles a NodeSet object
func NewReconciler ¶
func NewReconciler(c client.Client, cm *clientmap.ClientMap, ec chan event.GenericEvent) *NodeSetReconciler
func (*NodeSetReconciler) Reconcile ¶
func (r *NodeSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, retErr error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*NodeSetReconciler) SetupWithManager ¶
func (r *NodeSetReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.