Documentation ¶
Index ¶
- type Builder
- func (blder *Builder) Build(r reconcile.Reconciler) (controller.Controller, error)
- func (blder *Builder) Complete(r reconcile.Reconciler) error
- func (blder *Builder) For(object client.Object, opts ...builder.ForOption) *Builder
- func (blder *Builder) Owns(object client.Object, opts ...builder.OwnsOption) *Builder
- func (blder *Builder) TryOwns(object client.Object, crdDependency string, predicates ...predicate.Predicate) *Builder
- func (blder *Builder) WithEventFilter(p predicate.Predicate) *Builder
- func (blder *Builder) WithLogger(log logr.Logger) *Builder
- func (blder *Builder) WithOptions(options controller.Options) *Builder
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 (*Builder) Build ¶
func (blder *Builder) Build(r reconcile.Reconciler) (controller.Controller, error)
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 (*Builder) WithOptions ¶
func (blder *Builder) WithOptions(options controller.Options) *Builder
Click to show internal directories.
Click to hide internal directories.