scheduledsparkapplication

package
v0.0.0-...-43c1888 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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

Create implements handler.EventHandler.

func (*EventHandler) Delete

Delete implements handler.EventHandler.

func (*EventHandler) Generic

Generic implements handler.EventHandler.

func (*EventHandler) Update

Update implements handler.EventHandler.

type Options

type Options struct {
	Namespaces []string
}

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

func (r *Reconciler) 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. 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL