Documentation ¶
Index ¶
- type EventFilter
- type EventHandler
- func (s *EventHandler) Create(ctx context.Context, event event.CreateEvent, ...)
- func (s *EventHandler) Delete(ctx context.Context, event event.DeleteEvent, ...)
- func (s *EventHandler) Generic(ctx context.Context, event event.GenericEvent, ...)
- func (s *EventHandler) Update(ctx context.Context, event event.UpdateEvent, ...)
- type Options
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventFilter ¶
type EventFilter struct {
// contains filtered or unexported fields
}
EventFilter filters out ScheduledSparkApplication events.
func NewEventFilter ¶
func NewEventFilter(namespaces []string) *EventFilter
NewEventFilter creates a new EventFilter instance.
func (*EventFilter) Create ¶
func (f *EventFilter) Create(e event.CreateEvent) bool
Create implements predicate.Predicate.
func (*EventFilter) Delete ¶
func (f *EventFilter) Delete(_ event.DeleteEvent) bool
Delete implements predicate.Predicate.
func (*EventFilter) Generic ¶
func (f *EventFilter) Generic(e event.GenericEvent) bool
Generic implements predicate.Predicate.
func (*EventFilter) Update ¶
func (f *EventFilter) Update(e event.UpdateEvent) bool
Update implements predicate.Predicate.
type EventHandler ¶
type EventHandler struct { }
EventHandler handles events for ScheduledSparkApplication.
func NewEventHandler ¶
func NewEventHandler() *EventHandler
NewEventHandler creates a new EventHandler instance
func (*EventHandler) Create ¶
func (s *EventHandler) Create(ctx context.Context, event event.CreateEvent, queue workqueue.RateLimitingInterface)
Create implements handler.EventHandler.
func (*EventHandler) Delete ¶
func (s *EventHandler) Delete(ctx context.Context, event event.DeleteEvent, queue workqueue.RateLimitingInterface)
Delete implements handler.EventHandler.
func (*EventHandler) Generic ¶
func (s *EventHandler) Generic(ctx context.Context, event event.GenericEvent, queue workqueue.RateLimitingInterface)
Generic implements handler.EventHandler.
func (*EventHandler) Update ¶
func (s *EventHandler) Update(ctx context.Context, event event.UpdateEvent, queue workqueue.RateLimitingInterface)
Update implements handler.EventHandler.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler reconciles a ScheduledSparkApplication object
func NewReconciler ¶
func NewReconciler( scheme *runtime.Scheme, client client.Client, recorder record.EventRecorder, clock clock.Clock, options Options, ) *Reconciler
func (*Reconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ScheduledSparkApplication object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.18.2/pkg/reconcile
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error
SetupWithManager sets up the controller with the Manager.