Documentation ¶
Index ¶
- func AddUnAvailableFunc(f func(pod *corev1.Pod) (bool, *int64))
- func NewWebhookGenericEventChannel() <-chan event.GenericEvent
- type EventHandler
- func (p *EventHandler) Create(e event.CreateEvent, q workqueue.RateLimitingInterface)
- func (p *EventHandler) Delete(e event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (p *EventHandler) Generic(e event.GenericEvent, q workqueue.RateLimitingInterface)
- func (p *EventHandler) InjectClient(c client.Client) error
- func (p *EventHandler) InjectLogger(l logr.Logger) error
- func (p *EventHandler) Update(e event.UpdateEvent, q workqueue.RateLimitingInterface)
- type ManagerInterface
- type PodTransitionRuleEventHandler
- func (p *PodTransitionRuleEventHandler) Create(e event.CreateEvent, q workqueue.RateLimitingInterface)
- func (p *PodTransitionRuleEventHandler) Delete(e event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (p *PodTransitionRuleEventHandler) Generic(e event.GenericEvent, q workqueue.RateLimitingInterface)
- func (p *PodTransitionRuleEventHandler) Update(e event.UpdateEvent, q workqueue.RateLimitingInterface)
- type PodTransitionRuleReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebhookGenericEventChannel ¶ added in v0.2.0
func NewWebhookGenericEventChannel() <-chan event.GenericEvent
Types ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func (*EventHandler) Create ¶
func (p *EventHandler) Create(e event.CreateEvent, q workqueue.RateLimitingInterface)
func (*EventHandler) Delete ¶
func (p *EventHandler) Delete(e event.DeleteEvent, q workqueue.RateLimitingInterface)
func (*EventHandler) Generic ¶
func (p *EventHandler) Generic(e event.GenericEvent, q workqueue.RateLimitingInterface)
func (*EventHandler) InjectClient ¶
func (p *EventHandler) InjectClient(c client.Client) error
func (*EventHandler) InjectLogger ¶
func (p *EventHandler) InjectLogger(l logr.Logger) error
func (*EventHandler) Update ¶
func (p *EventHandler) Update(e event.UpdateEvent, q workqueue.RateLimitingInterface)
type ManagerInterface ¶
type ManagerInterface interface { // Register used to register podTransitionRule stages and conditions before starting controller register.Register // Checker is used to check rule state after starting controller checker.Checker // SetupPodTransitionRuleController add a new PodTransitionRuleController to manager SetupPodTransitionRuleController(manager.Manager) error }
ManagerInterface is podtransitionrule manager interface to init and setup one podtransitionrule controller
func PodTransitionRuleManager ¶
func PodTransitionRuleManager() ManagerInterface
type PodTransitionRuleEventHandler ¶
type PodTransitionRuleEventHandler struct { }
func (*PodTransitionRuleEventHandler) Create ¶
func (p *PodTransitionRuleEventHandler) Create(e event.CreateEvent, q workqueue.RateLimitingInterface)
func (*PodTransitionRuleEventHandler) Delete ¶
func (p *PodTransitionRuleEventHandler) Delete(e event.DeleteEvent, q workqueue.RateLimitingInterface)
func (*PodTransitionRuleEventHandler) Generic ¶
func (p *PodTransitionRuleEventHandler) Generic(e event.GenericEvent, q workqueue.RateLimitingInterface)
func (*PodTransitionRuleEventHandler) Update ¶
func (p *PodTransitionRuleEventHandler) Update(e event.UpdateEvent, q workqueue.RateLimitingInterface)
type PodTransitionRuleReconciler ¶
type PodTransitionRuleReconciler struct { *mixin.ReconcilerMixin register.Policy }
PodTransitionRuleReconciler reconciles a PodTransitionRule object
Source Files ¶
Click to show internal directories.
Click to hide internal directories.