Documentation ¶
Overview ¶
Package controller contains implementation of a controllers managed by the controller-manager
Index ¶
- Constants
- type BoostPodHandler
- type StartupCPUBoostReconciler
- func (r *StartupCPUBoostReconciler) Create(e event.CreateEvent) bool
- func (r *StartupCPUBoostReconciler) Delete(e event.DeleteEvent) bool
- func (r *StartupCPUBoostReconciler) Generic(e event.GenericEvent) bool
- func (r *StartupCPUBoostReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *StartupCPUBoostReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *StartupCPUBoostReconciler) Update(e event.UpdateEvent) bool
Constants ¶
View Source
const ( BoostActiveConditionTrueReason = "Ready" BoostActiveConditionTrueMessage = "Can boost new containers" BoostActiveConditionFalseReason = "NotFound" BoostActiveConditionFalseMessage = "StartupCPUBoost not found" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoostPodHandler ¶ added in v0.0.2
type BoostPodHandler interface { Create(context.Context, event.CreateEvent, workqueue.RateLimitingInterface) Delete(context.Context, event.DeleteEvent, workqueue.RateLimitingInterface) Update(context.Context, event.UpdateEvent, workqueue.RateLimitingInterface) Generic(context.Context, event.GenericEvent, workqueue.RateLimitingInterface) GetPodLabelSelector() *metav1.LabelSelector }
func NewBoostPodHandler ¶ added in v0.0.2
func NewBoostPodHandler(manager boost.Manager, log logr.Logger) BoostPodHandler
type StartupCPUBoostReconciler ¶
type StartupCPUBoostReconciler struct { client.Client Scheme *runtime.Scheme Log logr.Logger Manager boost.Manager }
StartupCPUBoostReconciler reconciles a StartupCPUBoost object
func (*StartupCPUBoostReconciler) Create ¶
func (r *StartupCPUBoostReconciler) Create(e event.CreateEvent) bool
func (*StartupCPUBoostReconciler) Delete ¶
func (r *StartupCPUBoostReconciler) Delete(e event.DeleteEvent) bool
func (*StartupCPUBoostReconciler) Generic ¶
func (r *StartupCPUBoostReconciler) Generic(e event.GenericEvent) bool
func (*StartupCPUBoostReconciler) Reconcile ¶
func (r *StartupCPUBoostReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, 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 (*StartupCPUBoostReconciler) SetupWithManager ¶
func (r *StartupCPUBoostReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*StartupCPUBoostReconciler) Update ¶
func (r *StartupCPUBoostReconciler) Update(e event.UpdateEvent) bool
Click to show internal directories.
Click to hide internal directories.