Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ControllerName defines the name for EventListener Controller ControllerName = "EventListener" // GeneratedResourcePrefix is the name prefix for resources generated in the // EventListener reconciler GeneratedResourcePrefix = "el" )
Variables ¶
View Source
var ( // DefaultImage is the image used by default. DefaultImage = "override-with-el:latest" // DefaultPort is the port used by default. DefaultPort = 8080 // DefaultSetSecurityContext is the SetSecurityContext value used by default. DefaultSetSecurityContext = true // DefaultReadTimeout is the ReadTimeout used by default. DefaultReadTimeout = int64(5) // DefaultWriteTimeout is the WriteTimeout used by default. DefaultWriteTimeout = int64(40) // DefaultIdleTimeout is the IdleTimeout used by default. DefaultIdleTimeout = int64(30) // DefaultTimeOutHandler is the TimeOutHandler timeout used by default. DefaultTimeOutHandler = int64(5) // DefaultPeriodSeconds is the PeriodSeconds used by default. DefaultPeriodSeconds = 10 // DefaultFailureThreshold is the FailureThreshold used by default. DefaultFailureThreshold = 3 // DefaultStaticResourceLabels are the StaticResourceLabels used by default. DefaultStaticResourceLabels = map[string]string{ "app.kubernetes.io/managed-by": "EventListener", "app.kubernetes.io/part-of": "Triggers", } // DefaultSystemNamespace is the default system namespace used. DefaultSystemNamespace = "tekton-pipelines" )
Functions ¶
func GenerateResourceLabels ¶
func GenerateResourceLabels(eventListenerName string, staticResourceLabels map[string]string) map[string]string
GenerateResourceLabels generates the labels to be used on all generated resources.
func NewController ¶
NewController creates a new instance of an EventListener controller.
Types ¶
type Config ¶
type Config struct { // Image defines the container that we use to run in the EventListener Pods. Image *string // Port defines the port for the EventListener to listen on. Port *int // SetSecurityContext defines if the security context is set. SetSecurityContext *bool // ReadTimeOut defines the read timeout for EventListener Server. ReadTimeOut *int64 // WriteTimeOut defines the write timeout for EventListener Server. WriteTimeOut *int64 // IdleTimeOut defines the read timeout for EventListener Server. IdleTimeOut *int64 // TimeOutHandler defines the timeout for Timeout Handler of EventListener Server. TimeOutHandler *int64 // PeriodSeconds defines Period Seconds for the EventListener Liveness and Readiness Probes. PeriodSeconds *int // FailureThreshold defines the Failure Threshold for the EventListener Liveness and Readiness Probes. FailureThreshold *int // StaticResourceLabels is a map with all the labels that should be on all resources generated by the EventListener. StaticResourceLabels map[string]string // SystemNamespace is the namespace where the reconciler is deployed. SystemNamespace string }
type Reconciler ¶
type Reconciler struct { DynamicClientSet dynamic.Interface // KubeClientSet allows us to talk to the k8s for core APIs KubeClientSet kubernetes.Interface // TriggersClientSet allows us to configure triggers objects TriggersClientSet triggersclientset.Interface // contains filtered or unexported fields }
Reconciler implements controller.Reconciler for Configuration resources.
func (*Reconciler) FinalizeKind ¶
func (r *Reconciler) FinalizeKind(ctx context.Context, el *v1beta1.EventListener) pkgreconciler.Event
FinalizeKind cleans up associated logging config maps when an EventListener is deleted
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, el *v1beta1.EventListener) pkgreconciler.Event
ReconcileKind compares the actual state with the desired, and attempts to converge the two.
Click to show internal directories.
Click to hide internal directories.