Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { config.MonitorConfig // Configuration of the Kubernetes API client KubernetesAPI *kubernetes.APIConfig `yaml:"kubernetesAPI" default:"{}"` // A list of event types to send events for. Only events matching these // items will be sent. WhitelistedEvents []EventInclusionSpec `yaml:"whitelistedEvents"` // If true, all events from Kubernetes will be sent. Please don't use this // option unless you really want to act on all possible K8s events. SendAllEvents bool `yaml:"sendAllEvents"` // Whether to always send events from this agent instance or to do leader // election to only send from one agent instance. AlwaysClusterReporter bool `yaml:"alwaysClusterReporter"` }
Config for the K8s event monitor
type EventInclusionSpec ¶
type EventInclusionSpec struct { Reason string `yaml:"reason"` InvolvedObjectKind string `yaml:"involvedObjectKind"` }
EventInclusionSpec specifies a type of event to send
Click to show internal directories.
Click to hide internal directories.