jobcontroller

package
v0.0.0-...-f651028 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupJobController

func SetupJobController(mgr ctrl.Manager) error

SetupJobController adds a controller that reconciles managed resources.

Types

type JobContext

type JobContext struct {
	context.Context
	// contains filtered or unexported fields
}

JobContext holds the parameters of a single reconciliation

type JobProvisioner

type JobProvisioner struct {
	Client client.Client
	Log    logr.Logger
}

JobProvisioner reconciles Job objects

func (*JobProvisioner) Deprovision

func (r *JobProvisioner) Deprovision(_ context.Context, _ *batchv1.Job) (reconcile.Result, error)

func (*JobProvisioner) NewObject

func (r *JobProvisioner) NewObject() *batchv1.Job

func (*JobProvisioner) Provision

func (r *JobProvisioner) Provision(ctx context.Context, obj *batchv1.Job) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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