event

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, namespace string, name string) error

Add creates a new Event Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type Filter added in v0.2.0

type Filter struct {
	Kinds      map[string]*KindFilter `json:"kinds,omitempty"`
	EventTypes []string               `json:"eventTypes,omitempty"`
}

Filter event filter

func (*Filter) Equals added in v0.2.0

func (f *Filter) Equals(o *Filter) bool

Equals check if the filter equals the other

type KindFilter added in v0.2.0

type KindFilter struct {
	EventTypes       []string         `json:"eventTypes,omitempty"`
	MatchingPatterns []*regexp.Regexp `json:"matchingPatterns,omitempty"`
	SkipOnMatch      bool             `json:"skipOnMatch,omitempty"`
}

KindFilter filter for kind

type ReconcileConfig added in v0.2.0

type ReconcileConfig struct {
	// contains filtered or unexported fields
}

ReconcileConfig reconciles a EventLogger object

func (*ReconcileConfig) Reconcile added in v0.2.0

func (r *ReconcileConfig) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a EventLogger object and makes changes based on the state read and what is in the EventLogger.Spec The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL