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 ¶
ReconcileVarnishCluster reconciles a VarnishCluster object
func NewVarnishReconciler ¶
func NewVarnishReconciler(mgr manager.Manager, cfg *config.Config, logr *logger.Logger, reconcileChan chan event.GenericEvent) *ReconcileVarnishCluster
Source Files ¶
- varnishcluster_clusterrole.go
- varnishcluster_clusterrolebinding.go
- varnishcluster_configmap.go
- varnishcluster_controller.go
- varnishcluster_default_vcl.go
- varnishcluster_delayed_rollingupdate.go
- varnishcluster_events.go
- varnishcluster_finalizers.go
- varnishcluster_grafana_dashboard.go
- varnishcluster_grafana_dashboard_template.go
- varnishcluster_headless_service.go
- varnishcluster_poddisruptionbudget.go
- varnishcluster_role.go
- varnishcluster_rolebinding.go
- varnishcluster_secret.go
- varnishcluster_service.go
- varnishcluster_service_account.go
- varnishcluster_servicemonitor.go
- varnishcluster_statefulset.go
- varnishcluster_varnish_args.go
Click to show internal directories.
Click to hide internal directories.