Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ControllerName is name of the controller
ControllerName = "eventsource-controller"
)
Variables ¶
This section is empty.
Functions ¶
func NewReconciler ¶
func NewReconciler(client client.Client, scheme *runtime.Scheme, eventSourceImage string, logger *zap.SugaredLogger) reconcile.Reconciler
NewReconciler returns a new reconciler
func Reconcile ¶
func Reconcile(client client.Client, args *AdaptorArgs, logger *zap.SugaredLogger) error
Reconcile does the real logic
func ValidateEventSource ¶
func ValidateEventSource(eventSource *aev1.EventSource) error
ValidateEventSource validates if the eventSource is valid
Types ¶
type AdaptorArgs ¶
type AdaptorArgs struct { Image string EventSource *aev1.EventSource Labels map[string]string }
AdaptorArgs are the args needed to create a sensor deployment
Click to show internal directories.
Click to hide internal directories.