Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Daemonset ¶
type Daemonset struct { Name string `json:"name" yaml:"name"` Namespace string `json:"namespace" yaml:"namespace"` }
Daemonset contains the name and namespace of a Daemonset
type Handler ¶
Handler performs the main business logic of the Wave controller
func NewHandler ¶
func NewHandler(c client.Client, r record.EventRecorder, conf HandlerConfig) *Handler
NewHandler constructs a new instance of Handler
type HandlerConfig ¶
type HandlerConfig struct { Daemonsets []Daemonset `json:"daemonsets" yaml:"daemonsets"` NodeSelector []string `json:"nodeSelector" yaml:"nodeSelector"` Selector labels.Selector }
HandlerConfig contains the options for Nidhogg
func GetConfig ¶
func GetConfig(config string) (HandlerConfig, error)
GetConfig reads the config file, parses it whether it be in json or yaml and returns a handler config
func (*HandlerConfig) BuildSelectors ¶ added in v0.4.0
func (hc *HandlerConfig) BuildSelectors() error
Click to show internal directories.
Click to hide internal directories.