reconciler

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

func (*Base) LogAndRecordOperationResult

func (r *Base) LogAndRecordOperationResult(ctx context.Context, owner, resource runtime.Object, operationResult controllerutil.OperationResult, err error)

LogAndRecordOperationResult logs and records an event for the provided CreateOrUpdate operation result.

func (*Base) ReconcileBuilders

func (r *Base) ReconcileBuilders(ctx context.Context, owner runtime.Object, builders []resource.Builder) ([]*v1beta1.ServiceStatus, error)

func (*Base) ReconcileJobs

func (r *Base) ReconcileJobs(ctx context.Context, owner runtime.Object, builderFactory JobBuilderFactory, jobs []*Job) (time.Duration, error)

func (*Base) ReconcilePruners

func (r *Base) ReconcilePruners(ctx context.Context, owner runtime.Object, pruners []resource.Pruner) error

func (*Base) ReconcileResources

func (r *Base) ReconcileResources(ctx context.Context, owner runtime.Object, builder resourceset.Builder) ([]*v1beta1.ServiceStatus, error)

type Job

type Job struct {
	Name          string
	Command       []string
	Skip          func(owner runtime.Object) bool
	ReportSuccess func(owner runtime.Object) error
}

type JobBuilderFactory

type JobBuilderFactory func(owner runtime.Object, scheme *runtime.Scheme, name string, command []string) resource.Builder

Jump to

Keyboard shortcuts

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