Documentation
¶
Index ¶
- Constants
- type NodeSetReconciler
- func (r *NodeSetReconciler) EnqueueNodeSetAfter(nodeset *slinkyv1beta1.NodeSet, after time.Duration)
- func (r *NodeSetReconciler) NodeShouldRunDaemonPod(ctx context.Context, node *corev1.Node, nodeset *slinkyv1beta1.NodeSet) (bool, bool)
- func (r *NodeSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, retErr error)
- func (r *NodeSetReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *NodeSetReconciler) Sync(ctx context.Context, req reconcile.Request) error
- type SyncFinalizer
Constants ¶
const ( ControllerName = "nodeset-controller" // BackoffGCInterval is the time that has to pass before next iteration of backoff GC is run BackoffGCInterval = 1 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeSetReconciler ¶
type NodeSetReconciler struct {
client.Client
Scheme *runtime.Scheme
ClientMap *clientmap.ClientMap
// contains filtered or unexported fields
}
NodeSetReconciler reconciles a NodeSet object
func NewReconciler ¶
func NewReconciler(c client.Client, cm *clientmap.ClientMap, propagatedNodeConditions []corev1.NodeConditionType) *NodeSetReconciler
func (*NodeSetReconciler) EnqueueNodeSetAfter ¶ added in v1.1.0
func (r *NodeSetReconciler) EnqueueNodeSetAfter(nodeset *slinkyv1beta1.NodeSet, after time.Duration)
EnqueueNodeSetAfter schedules a reconcile of the NodeSet after the given delay. It uses the shared durationStore so that the next Reconcile result will have RequeueAfter set.
func (*NodeSetReconciler) NodeShouldRunDaemonPod ¶ added in v1.1.0
func (r *NodeSetReconciler) NodeShouldRunDaemonPod(ctx context.Context, node *corev1.Node, nodeset *slinkyv1beta1.NodeSet) (bool, bool)
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.