operator

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 7 Imported by: 7

Documentation

Overview

Package operator contains implementations and definitions to create Kubernetes operators and controllers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator interface {
	// Initialize knows how to initialize the resources.
	Initialize() error
	controller.Controller
}

Operator is a controller, at code level have almost same contract of behaviour but at a higher level it need to initialize some resources (usually CRDs) before start its execution.

func NewMultiOperator

func NewMultiOperator(crds []resource.CRD, ctrlrs []controller.Controller, logger log.Logger) Operator

NewMultiOperator returns an operator that has multiple CRDs and controllers.

func NewOperator

func NewOperator(crd resource.CRD, ctrlr controller.Controller, logger log.Logger) Operator

NewOperator will return an operator that only manages one CRD and one Controller.

Directories

Path Synopsis
Package controller contains implementation and defition to create kubernetes controllers.
Package controller contains implementation and defition to create kubernetes controllers.

Jump to

Keyboard shortcuts

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