prunecontroller

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupWithManager

func SetupWithManager(mgr ctrl.Manager) error

SetupWithManager configures the reconciler.

Types

type PruneExecutor

type PruneExecutor struct {
	executor.Generic
	// contains filtered or unexported fields
}

PruneExecutor will execute the batch.job for Prunes.

func NewPruneExecutor

func NewPruneExecutor(config job.Config) *PruneExecutor

NewPruneExecutor will return a new executor for Prune jobs.

func (*PruneExecutor) Exclusive

func (p *PruneExecutor) Exclusive() bool

Exclusive should return true for jobs that can't run while other jobs run.

func (*PruneExecutor) Execute

func (p *PruneExecutor) Execute(ctx context.Context) error

Execute creates the actual batch.job on the k8s api.

type PruneReconciler

type PruneReconciler struct {
	Kube client.Client
}

PruneReconciler reconciles a Prune object

func (*PruneReconciler) Deprovision

func (*PruneReconciler) NewObject

func (r *PruneReconciler) NewObject() *k8upv1.Prune

func (*PruneReconciler) NewObjectList

func (r *PruneReconciler) NewObjectList() *k8upv1.PruneList

func (*PruneReconciler) Provision

Jump to

Keyboard shortcuts

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