controllerutil

package
v0.0.0-...-530e6f3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AddToManagerFuncs is a list of functions to add all Controllers to the Manager
	AddToManagerFuncs []func(manager.Manager) error
)

Functions

func AddToManager

func AddToManager(m manager.Manager) error

AddToManager adds all Controllers to the Manager

func WatchResourceOrStackError

func WatchResourceOrStackError(controller controller.Controller, resource NamedResource, owner runtime.Object)

WatchResourceOrStackError watch the resource passed as resource and set owner as the parent

Types

type NamedResource

type NamedResource struct {
	Object interface{}
	Name   string
}

type RuntimeResource

type RuntimeResource struct {
	Object runtime.Object
	types.NamespacedName
}

type StaticResource

type StaticResource struct {
	Object metav1.Object
	types.NamespacedName
}

Jump to

Keyboard shortcuts

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