Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SuccessSynced is used as part of the Event 'reason' when a Alert is synced SuccessSynced = "Synced" // MessageResourceSynced is the message used for an Event fired when a Alert // is synced successfully MessageResourceSynced = "Radix Alert synced successfully" )
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController(ctx context.Context, client kubernetes.Interface, radixClient radixclient.Interface, handler common.Handler, kubeInformerFactory kubeinformers.SharedInformerFactory, radixInformerFactory informers.SharedInformerFactory, waitForChildrenToSync bool, recorder record.EventRecorder) *common.Controller
NewController creates a new controller that handles RadixAlerts
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler Instance variables
func NewHandler ¶
func NewHandler(kubeclient kubernetes.Interface, kubeutil *kube.Kube, radixclient radixclient.Interface, prometheusperatorclient monitoring.Interface, options ...HandlerConfigOption) *Handler
NewHandler Constructor
type HandlerConfigOption ¶
type HandlerConfigOption func(*Handler)
HandlerConfigOption defines a configuration function used for additional configuration of Handler
func WithAlertSyncerFactory ¶
func WithAlertSyncerFactory(factory alert.AlertSyncerFactory) HandlerConfigOption
WithAlertSyncerFactory configures the alertSyncerFactory for the Handler
Click to show internal directories.
Click to hide internal directories.