Documentation ¶
Index ¶
Constants ¶
const CRBGracefulEvictionControllerName = "cluster-resource-binding-graceful-eviction-controller"
CRBGracefulEvictionControllerName is the controller name that will be used when reporting events.
const RBGracefulEvictionControllerName = "resource-binding-graceful-eviction-controller"
RBGracefulEvictionControllerName is the controller name that will be used when reporting events.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRBGracefulEvictionController ¶
type CRBGracefulEvictionController struct { client.Client EventRecorder record.EventRecorder RateLimiterOptions ratelimiterflag.Options GracefulEvictionTimeout time.Duration }
CRBGracefulEvictionController is to sync ClusterResourceBinding.spec.gracefulEvictionTasks.
func (*CRBGracefulEvictionController) Reconcile ¶
func (c *CRBGracefulEvictionController) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)
Reconcile performs a full reconciliation for the object referred to by the Request. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*CRBGracefulEvictionController) SetupWithManager ¶
func (c *CRBGracefulEvictionController) SetupWithManager(mgr controllerruntime.Manager) error
SetupWithManager creates a controller and register to controller manager.
type RBGracefulEvictionController ¶
type RBGracefulEvictionController struct { client.Client EventRecorder record.EventRecorder RateLimiterOptions ratelimiterflag.Options GracefulEvictionTimeout time.Duration }
RBGracefulEvictionController is to sync ResourceBinding.spec.gracefulEvictionTasks.
func (*RBGracefulEvictionController) Reconcile ¶
func (c *RBGracefulEvictionController) Reconcile(ctx context.Context, req controllerruntime.Request) (controllerruntime.Result, error)
Reconcile performs a full reconciliation for the object referred to by the Request. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*RBGracefulEvictionController) SetupWithManager ¶
func (c *RBGracefulEvictionController) SetupWithManager(mgr controllerruntime.Manager) error
SetupWithManager creates a controller and register to controller manager.