Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventHandlerMap = map[string]EventHandler{}
Functions ¶
Types ¶
type EventHandler ¶
type EventHandler interface {
Handle(client.Client, intctrlutil.RequestCtx, record.EventRecorder, *corev1.Event) error
}
type EventReconciler ¶
EventReconciler reconciles an Event object
func (*EventReconciler) 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.4/pkg/reconcile
func (*EventReconciler) SetupWithManager ¶
func (r *EventReconciler) SetupWithManager(mgr ctrl.Manager, multiClusterMgr multicluster.Manager) error
SetupWithManager sets up the controller with the Manager.
type ProbeMessage ¶
type ProbeMessage struct { Event ProbeEventType `json:"event,omitempty"` Message string `json:"message,omitempty"` OriginalRole string `json:"originalRole,omitempty"` Role string `json:"role,omitempty"` Term int `json:"term,omitempty"` PodName2Role map[string]string `json:"map,omitempty"` }
func ParseProbeEventMessage ¶
func ParseProbeEventMessage(reqCtx intctrlutil.RequestCtx, event *corev1.Event) *ProbeMessage
ParseProbeEventMessage parses probe event message.
Click to show internal directories.
Click to hide internal directories.