controller

package
v0.0.0-...-54c5aff Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventRecorderNameVarnishCluster = "varnish-cluster" // appears in the 'From' column of the events list

	EventReasonServiceMonitorKindNotFound = "servicemonitor-not-found"
	EventReasonNamespaceNotFound          = "namespace-not-found"
)

Variables

This section is empty.

Functions

func SetupVarnishReconciler

func SetupVarnishReconciler(ctx context.Context, vcCtrl reconcile.Reconciler, mgr manager.Manager, reconcileChan chan event.GenericEvent) error

Types

type EventHandler

type EventHandler struct {
	Recorder record.EventRecorder
}

EventHandler handles the operations for events

func NewEventHandler

func NewEventHandler(recorder record.EventRecorder) *EventHandler

NewEventHandler creates a new event handler that will use the specified recorder

func (*EventHandler) Normal

func (e *EventHandler) Normal(object runtime.Object, reason EventReason, message string)

Normal creates a 'normal' type event

func (*EventHandler) Warning

func (e *EventHandler) Warning(object runtime.Object, reason EventReason, message string)

Warning creates a 'warning' type event

type EventReason

type EventReason string

EventReason is the reason why the event was create. The value appears in the 'Reason' tab of the events list

type ReconcileVarnishCluster

type ReconcileVarnishCluster struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileVarnishCluster reconciles a VarnishCluster object

func NewVarnishReconciler

func NewVarnishReconciler(mgr manager.Manager, cfg *config.Config, logr *logger.Logger, reconcileChan chan event.GenericEvent) *ReconcileVarnishCluster

func (*ReconcileVarnishCluster) Reconcile

func (r *ReconcileVarnishCluster) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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