events

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventInformerFuncForNamespace

func NewEventInformerFuncForNamespace(origin, namespace string) kubeinformersinterfaces.NewInformerFunc

NewEventInformerFuncForNamespace returns function which creates new event informer for a given namespace.

Types

type EventWatcherConfig

type EventWatcherConfig struct {
	// Kubeconfig is the path to the kubeconfig file
	Kubeconfig string //Do I need this field?
	// Namespaces to watch for events in.
	Namespaces []string
}

EventWatcherConfig is a configuration fot the event watcher.

type GardenerEventWatcher

type GardenerEventWatcher struct {
	// SeedKubeInformerFactories contains the informer factories fot the seed event watcher
	SeedKubeInformerFactories []kubeinformers.SharedInformerFactory
	// ShootKubeInformerFactories contains the informer factories fot the shoot event watcher
	ShootKubeInformerFactories []kubeinformers.SharedInformerFactory
}

GardenerEventWatcher is the event watcher for the gardener

func (*GardenerEventWatcher) Run

func (e *GardenerEventWatcher) Run(stopCh <-chan struct{})

Run start the GardenerEventWatcher lifecycle

type GardenerEventWatcherConfig

type GardenerEventWatcherConfig struct {
	// SeedEventWatcherConfig is a configuration for the event watcher in the seed.
	SeedEventWatcherConfig EventWatcherConfig
	// SeedKubeInformerFactories contains the informer factories fot the seed event watcher
	SeedKubeInformerFactories []kubeinformers.SharedInformerFactory
	// SeedEventWatcherConfig is a configuration for the event watcher in the shoot.
	ShootEventWatcherConfig EventWatcherConfig
	// ShootKubeInformerFactories contains the informer factories fot the shoot event watcher
	ShootKubeInformerFactories []kubeinformers.SharedInformerFactory
}

GardenerEventWatcherConfig contains configuration for the event logger run in gardener.

func (*GardenerEventWatcherConfig) New

New returns new GardenerEventWatcherConfig

type Options

type Options struct {
	// Kubeconfig is the path to the kubeconfig file
	Kubeconfig string
	// Namespaces to watch for events in.
	Namespaces []string
}

Options has all the context and parameters needed to run a Gardener Event Logger.

func (*Options) ApplyTo

func (o *Options) ApplyTo(config *EventWatcherConfig) error

ApplyTo applies the Options to an EventWatcherConfig

func (*Options) Validate

func (o *Options) Validate() []error

Validate validates the Options

type SeedOptions

type SeedOptions struct {
	// Options has all the context and parameters needed to run a Gardener Event Logger.
	Options
}

SeedOptions has all the context and parameters needed to run a Gardener Event Logger in the seed cluster

func (*SeedOptions) AddFlags

func (o *SeedOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds all flags to the given FlagSet.

func (*SeedOptions) ApplyTo

func (o *SeedOptions) ApplyTo(config *EventWatcherConfig) error

ApplyTo applies the SeedOptions to an EventWatcherConfig

func (*SeedOptions) Validate

func (o *SeedOptions) Validate() []error

Validate all flags of the given Options.

type ShootOptions

type ShootOptions struct {
	// Options has all the context and parameters needed to run a Gardener Event Logger.
	Options
}

ShootOptions has all the context and parameters needed to run a Gardener Event Logger in the shoot cluster

func (*ShootOptions) AddFlags

func (o *ShootOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds all flags to the given FlagSet.

func (*ShootOptions) ApplyTo

func (o *ShootOptions) ApplyTo(config *EventWatcherConfig) error

ApplyTo applies the ShootOptions to an EventWatcherConfig

func (*ShootOptions) Validate

func (o *ShootOptions) Validate() []error

Validate all flags of the given Options.

Jump to

Keyboard shortcuts

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