reconciler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

type JosbReconciler

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

func (*JosbReconciler) Reconcile

func (r *JosbReconciler) Reconcile(ctx context.Context, owner client.Object, builderFactory JobBuilderFactory, jobs []*Job) (time.Duration, error)

type Reconciler added in v0.1.0

type Reconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Recorder  record.EventRecorder
	Discovery discovery.Manager
}

func (*Reconciler) ReconcileBuilder added in v0.1.0

func (r *Reconciler) ReconcileBuilder(ctx context.Context, owner client.Object, builder resource.Builder) (client.Object, error)

func (*Reconciler) ReconcileBuilders added in v0.1.0

func (r *Reconciler) ReconcileBuilders(ctx context.Context, owner client.Object, builders []resource.Builder) ([]*resource.Status, time.Duration, error)

Jump to

Keyboard shortcuts

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