operands

package
v0.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operand

type Operand interface {
	// AddWatchTypesToScheme adds any additional types to the scheme.
	// The default scheme already contains types from k8s.io/api.
	AddWatchTypesToScheme(*runtime.Scheme) error

	// WatchTypes returns a slice of namespaced resources, that the operator should watch.
	WatchTypes() []client.Object

	// WatchClusterTypes returns a slice of cluster resources, that the operator should watch.
	WatchClusterTypes() []client.Object

	// Reconcile creates and updates resources.
	Reconcile(*common.Request) ([]common.ResourceStatus, error)

	// Cleanup removes any created cluster resources.
	// They don't use owner references, so the garbage collector will not remove them.
	Cleanup(*common.Request) error

	// Name returns the name of the operand
	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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