builder

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder builds a Controller and it can own objects later when the crd of the object ready.

func ControllerManagedBy

func ControllerManagedBy(m manager.Manager) *Builder

func (*Builder) Build

func (*Builder) Complete

func (blder *Builder) Complete(r reconcile.Reconciler) error

func (*Builder) For

func (blder *Builder) For(object client.Object, opts ...builder.ForOption) *Builder

func (*Builder) Owns

func (blder *Builder) Owns(object client.Object, opts ...builder.OwnsOption) *Builder

func (*Builder) TryOwns

func (blder *Builder) TryOwns(object client.Object, crdDependency string, predicates ...predicate.Predicate) *Builder

TryOwns owns the object when the crdDependency ready, otherwise try owns it after the crdDependency ready.

func (*Builder) WithEventFilter

func (blder *Builder) WithEventFilter(p predicate.Predicate) *Builder

func (*Builder) WithLogger

func (blder *Builder) WithLogger(log logr.Logger) *Builder

func (*Builder) WithOptions

func (blder *Builder) WithOptions(options controller.Options) *Builder

Jump to

Keyboard shortcuts

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