logging

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config event config

func ConfigFor

func ConfigFor(name, podNamespace, watchNamespace string) *Config

ConfigFor get config for namespace and name

type Filter

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

Filter event filter

func (*Filter) Equals

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

Equals check if the filter equals the other

type KindFilter

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

KindFilter filter for kind

type Reconciler

type Reconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Config *Config
}

Reconciler reconciles a Event object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile EventLogger to update the current config

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, namespace string) error

SetupWithManager setup with manager

Jump to

Keyboard shortcuts

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