migstorage

package
v0.0.0-...-ec8378c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	InvalidBSProvider       = "InvalidBackupStorageProvider"
	InvalidBSCredsSecretRef = "InvalidBackupStorageCredsSecretRef"
	InvalidBSFields         = "InvalidBackupStorageSettings"
	InvalidVSProvider       = "InvalidVolumeSnapshotProvider"
	InvalidVSCredsSecretRef = "InvalidVolumeSnapshotCredsSecretRef"
	InvalidVSFields         = "InvalidVolumeSnapshotSettings"
	BSProviderTestFailed    = "BackupStorageProviderTestFailed"
	VSProviderTestFailed    = "VolumeSnapshotProviderTestFailed"
)

Types

View Source
const (
	Supported    = "Supported"
	NotSupported = "NotSupported"
	NotSet       = "NotSet"
	NotFound     = "NotFound"
	KeyError     = "KeyError"
	TestFailed   = "TestFailed"
)

Reasons

View Source
const (
	True  = migapi.True
	False = migapi.False
)

Statuses

View Source
const (
	Critical = migapi.Critical
)

Categories

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new MigStorage Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ProviderSource

type ProviderSource struct {
	Client    client.Client
	Interval  time.Duration
	Namespace string
	// contains filtered or unexported fields
}

A cloud provider `watch` source used to routinely run provider tests.

Client - A controller-runtime client.
Interval - The connection test interval.
Namespace - Only objects in this namespace are queued

func (*ProviderSource) Start

Start the source.

type ReconcileMigStorage

type ReconcileMigStorage struct {
	client.Client
	record.EventRecorder
	// contains filtered or unexported fields
}

ReconcileMigStorage reconciles a MigStorage object

func (*ReconcileMigStorage) Reconcile

func (r *ReconcileMigStorage) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

type StoragePredicate

type StoragePredicate struct {
	predicate.Funcs
	Namespace string
}

func (StoragePredicate) Create

func (r StoragePredicate) Create(e event.CreateEvent) bool

func (StoragePredicate) Delete

func (r StoragePredicate) Delete(e event.DeleteEvent) bool

func (StoragePredicate) Update

func (r StoragePredicate) Update(e event.UpdateEvent) bool

Jump to

Keyboard shortcuts

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