controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VolumeRunsInVolumePool

func VolumeRunsInVolumePool(volume *storagev1alpha1.Volume, volumePoolName string) bool

func VolumeRunsInVolumePoolPredicate

func VolumeRunsInVolumePoolPredicate(volumePoolName string) predicate.Predicate

Types

type VolumeAnnotatorReconciler

type VolumeAnnotatorReconciler struct {
	client.Client

	VolumeEvents orievent.Source[*ori.Volume]
}

func (*VolumeAnnotatorReconciler) Reconcile

func (*VolumeAnnotatorReconciler) SetupWithManager

func (r *VolumeAnnotatorReconciler) SetupWithManager(mgr ctrl.Manager) error

type VolumePoolInit

type VolumePoolInit struct {
	client.Client

	VolumePoolName string
	ProviderID     string

	OnInitialized func(ctx context.Context) error
	OnFailed      func(ctx context.Context, reason error) error
}

func (*VolumePoolInit) SetupWithManager

func (i *VolumePoolInit) SetupWithManager(mgr ctrl.Manager) error

func (*VolumePoolInit) Start

func (i *VolumePoolInit) Start(ctx context.Context) error

type VolumePoolReconciler

type VolumePoolReconciler struct {
	client.Client
	VolumePoolName    string
	VolumeRuntime     ori.VolumeRuntimeClient
	VolumeClassMapper vcm.VolumeClassMapper
}

func (*VolumePoolReconciler) Reconcile

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

func (*VolumePoolReconciler) SetupWithManager

func (r *VolumePoolReconciler) SetupWithManager(mgr ctrl.Manager) error

type VolumeReconciler

type VolumeReconciler struct {
	record.EventRecorder
	client.Client
	Scheme *runtime.Scheme

	VolumeRuntime ori.VolumeRuntimeClient

	VolumeClassMapper vcm.VolumeClassMapper

	VolumePoolName   string
	WatchFilterValue string
}

func (*VolumeReconciler) Reconcile

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

func (*VolumeReconciler) SetupWithManager

func (r *VolumeReconciler) SetupWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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