kot

package module
v0.0.0-...-8262c23 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

README

Kubernetes Operator Toolkit

A toolkit for building kubernetes operators, based on controller runtime libs.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Watch     = reconcile.MustCreateWatcher
	Reconcile = reconcile.MustCreateReconciler

	ListChildrenOption = indexing.ListChildrenOption

	Setup = setup.Run

	GVKForObject = apiutil.GVKForObject

	NewPredicateFuncs = runtimepredicate.NewPredicateFuncs
	AndPredicate      = runtimepredicate.And
	OrPredicate       = runtimepredicate.Or

	InNamespace = kotclient.InNamespace

	ClientDep = wkdeps.Client
)

Functions

func CopyAnnotations

func CopyAnnotations(src, dest Object)

func CopyLabels

func CopyLabels(src, dest Object)

func GetAnnotation

func GetAnnotation(obj Object, name string) string

func HasAnnotation

func HasAnnotation(obj Object, name string) bool

func SimpleIf

func SimpleIf(fn func(Context) bool) reconcile.ReconcileIfFunc

func SimpleReconcileList

func SimpleReconcileList(fn func(Context, ObjectList)) reconcile.ReconcileListFunc

func SimpleReconcileOne

func SimpleReconcileOne(fn func(Context, Object)) reconcile.ReconcileOneFunc

Types

type Action

type Action = action.Action

type ActionFn

type ActionFn = action.ActionFn

func SimpleAction

func SimpleAction(fn func(Context)) ActionFn

type ClientKey

type ClientKey = kotclient.Key

type Config

type Config = setup.Config

type Container

type Container = deps.Container

type Context

type Context = action.Context

type Controller

type Controller = controller.Controller

type Finalizer

type Finalizer = reconcile.Finalizer

type Finalizers

type Finalizers = []reconcile.Finalizer

type Indexer

type Indexer = indexing.Indexer

type MatchingFields

type MatchingFields = kotclient.MatchingFields

type Object

type Object = runtimeclient.Object

type ObjectList

type ObjectList = runtimeclient.ObjectList

type ReconcileRequest

type ReconcileRequest = runtimereconcile.Request

type Reconciler

type Reconciler = reconcile.Reconciler

type Reconcilers

type Reconcilers = []reconcile.Reconciler

type ResourceWatcher

type ResourceWatcher = reconcile.ResourceWatcherConfig

type Result

type Result = action.Result

type SimpleFinalizer

type SimpleFinalizer struct {
	EnabledFn  func(ctx action.Context) (bool, error)
	FinalizeFn func(ctx action.Context) (bool, action.Result, error)
}

func (*SimpleFinalizer) Enabled

func (f *SimpleFinalizer) Enabled(ctx action.Context) (bool, error)

func (*SimpleFinalizer) Finalize

func (f *SimpleFinalizer) Finalize(ctx action.Context) (bool, action.Result, error)

type StatusResolvers

type StatusResolvers = []reconcile.StatusResolver

type Watchers

type Watchers = []reconcile.Watcher

Directories

Path Synopsis
internal
pkg
kottesting/gomock
Package kotmocks is a generated GoMock package.
Package kotmocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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