controllers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConnNotFoundRequeueNeeded = errors.New("connection not found, requeue needed")
	ErrScheduleNotFound          = errors.New("schedule not found")
)

Functions

This section is empty.

Types

type CSIAddonsNodeReconciler

type CSIAddonsNodeReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	ConnPool *connection.ConnectionPool
}

CSIAddonsNodeReconciler reconciles a CSIAddonsNode object

func (*CSIAddonsNodeReconciler) Reconcile

func (r *CSIAddonsNodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*CSIAddonsNodeReconciler) SetupWithManager

func (r *CSIAddonsNodeReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error

SetupWithManager sets up the controller with the Manager.

type NetworkFenceInstance

type NetworkFenceInstance struct {
	// contains filtered or unexported fields
}

NetworkFenceInstance contains the attributes that can be useful in reconciling a particular instance of the NetworkFence resource.

type NetworkFenceReconciler

type NetworkFenceReconciler struct {
	client.Client
	// Scheme defines methods for serializing and deserializing API objects.
	Scheme *runtime.Scheme
	// ConnectionPool consists of map of Connection objects
	Connpool *conn.ConnectionPool
	// Timeout for the Reconcile operation.
	Timeout time.Duration
}

NetworkFenceReconciler reconciles a NetworkFence object.

func (*NetworkFenceReconciler) Reconcile

func (r *NetworkFenceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*NetworkFenceReconciler) SetupWithManager

func (r *NetworkFenceReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error

SetupWithManager sets up the controller with the Manager.

type PersistentVolumeClaimReconciler

type PersistentVolumeClaimReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// ConnectionPool consists of map of Connection objects.
	ConnPool *connection.ConnectionPool
}

PersistentVolumeClaimReconciler reconciles a PersistentVolumeClaim object

func (*PersistentVolumeClaimReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. This is triggered when `reclaimspace.csiaddons.openshift/schedule` annotation is found on newly created PVC or its found on the namespace or if there is a change in value of the annotation. It is also triggered by any changes to the child cronjob.

func (*PersistentVolumeClaimReconciler) SetupWithManager

func (r *PersistentVolumeClaimReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error

SetupWithManager sets up the controller with the Manager.

type ReclaimSpaceCronJobReconciler

type ReclaimSpaceCronJobReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ReclaimSpaceCronJobReconciler reconciles a ReclaimSpaceCronJob object

func (*ReclaimSpaceCronJobReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. Reconcile will be called when there is any event related to reclaimSpaceCronJob and also when there is an event related to child reclaimSpaceJobs due to controllerOwnerRef.

func (*ReclaimSpaceCronJobReconciler) SetupWithManager

func (r *ReclaimSpaceCronJobReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error

SetupWithManager sets up the controller with the Manager.

type ReclaimSpaceJobReconciler

type ReclaimSpaceJobReconciler struct {
	client.Client
	// Scheme defines methods for serializing and deserializing API objects.
	Scheme *runtime.Scheme
	// ConnectionPool consists of map of Connection objects.
	ConnPool *connection.ConnectionPool
	// Timeout for the Reconcile operation.
	Timeout time.Duration
}

ReclaimSpaceJobReconciler reconciles a ReclaimSpaceJob object.

func (*ReclaimSpaceJobReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ReclaimSpaceJobReconciler) SetupWithManager

func (r *ReclaimSpaceJobReconciler) SetupWithManager(mgr ctrl.Manager, ctrlOptions controller.Options) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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