events

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetController

func GetController(clientset *kubernetes.Clientset, namespace string, fieldSelector fields.Selector) cache.Controller

func NewEventInformerFuncForNamespace

func NewEventInformerFuncForNamespace(origin, namespace string) kubeinformersinterfaces.NewInformerFunc

Types

type EventWatcherConfig

type EventWatcherConfig struct {
	Kubeconfig string //Do I need this field?
	Namespace  string
}

type GardenerEventWatcher

type GardenerEventWatcher struct {
	SeedKubeInformerFactory  kubeinformers.SharedInformerFactory
	ShootKubeInformerFactory kubeinformers.SharedInformerFactory
}

func (*GardenerEventWatcher) Run

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

type GardenerEventWatcherConfig

type GardenerEventWatcherConfig struct {
	SeedEventWatcherConfig   EventWatcherConfig
	SeedKubeInformerFactory  kubeinformers.SharedInformerFactory
	ShootEventWatcherConfig  EventWatcherConfig
	ShootKubeInformerFactory kubeinformers.SharedInformerFactory
}

func (*GardenerEventWatcherConfig) New

type Options

type Options struct {
	Kubeconfig string
	Namespace  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

func (*Options) Validate

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

type SeedOptions

type SeedOptions struct {
	Options
}

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

func (*SeedOptions) Validate

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

Validate all flags of the given Options.

type ShootOptions

type ShootOptions struct {
	Options
}

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

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