operator

package
v0.0.0-...-425e462 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigRoot       string
	ConfigSecretName string
	ResyncPeriod     time.Duration
	MaxNumRequeues   int
	NumThreads       int
	IncidentTTL      time.Duration
	// V logging level, the value of the -v flag
	Verbosity string
}

type Operator

type Operator struct {
	Config
	// contains filtered or unexported fields
}

func (*Operator) GetIcingaPod

func (op *Operator) GetIcingaPod() (*core.Pod, error)

func (*Operator) MigrateAlerts

func (op *Operator) MigrateAlerts() error

func (*Operator) MigrateClusterAlerts

func (op *Operator) MigrateClusterAlerts() error

func (*Operator) MigrateNodeAlert

func (op *Operator) MigrateNodeAlert() error

func (*Operator) MigratePodAlert

func (op *Operator) MigratePodAlert() error

func (*Operator) Run

func (op *Operator) Run(stopCh <-chan struct{}) error

func (*Operator) RunInformers

func (op *Operator) RunInformers(stopCh <-chan struct{})

type OperatorConfig

type OperatorConfig struct {
	Config

	ClientConfig   *rest.Config
	KubeClient     kubernetes.Interface
	ExtClient      cs.Interface
	CRDClient      crd_cs.ApiextensionsV1beta1Interface
	IcingaClient   *icinga.Client // TODO: init
	AdmissionHooks []hooks.AdmissionHook
}

func NewOperatorConfig

func NewOperatorConfig(clientConfig *rest.Config) *OperatorConfig

func (*OperatorConfig) New

func (c *OperatorConfig) New() (*Operator, error)

Jump to

Keyboard shortcuts

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