nidhogg

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

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

type Handler struct {
	client.Client
	// contains filtered or unexported fields
}

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

func (*Handler) HandleNode

func (h *Handler) HandleNode(instance *corev1.Node) (reconcile.Result, error)

HandleNode works out what taints need to be applied to the node

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

Jump to

Keyboard shortcuts

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