mirror of
https://github.com/resmoio/kubernetes-event-exporter.git
synced 2026-08-24 01:06:22 +00:00
27 lines
899 B
Go
27 lines
899 B
Go
package exporter
|
|
|
|
import (
|
|
"github.com/opsgenie/kubernetes-event-exporter/pkg/kube"
|
|
"github.com/opsgenie/kubernetes-event-exporter/pkg/sinks"
|
|
)
|
|
|
|
// Config allows configuration
|
|
type Config struct {
|
|
// Route is the top route that the events will match
|
|
// TODO: There is currently a tight coupling with route and config, but not with receiver config and sink so
|
|
// TODO: I am not sure what to do here.
|
|
LogLevel string `yaml:"logLevel"`
|
|
LogFormat string `yaml:"logFormat"`
|
|
Namespace string `yaml:"namespace"`
|
|
LeaderElection kube.LeaderElectionConfig `yaml:"leaderElection"`
|
|
Route Route `yaml:"route"`
|
|
Receivers []sinks.ReceiverConfig `yaml:"receivers"`
|
|
}
|
|
|
|
func (c *Config) Validate() error {
|
|
// No duplicate receivers
|
|
// Receivers individually
|
|
// Routers recursive
|
|
return nil
|
|
}
|