controllers

package
v2.8.2-0...-dd449ac Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StorkMigrationReplicasAnnotation is the annotation used to keep track of
	// the number of replicas for an application when it was migrated
	StorkMigrationReplicasAnnotation = "stork.libopenstorage.org/migrationReplicas"
	// StorkMigrationAnnotation is the annotation used to keep track of resources
	// migrated by stork
	StorkMigrationAnnotation = "stork.libopenstorage.org/migrated"
	// StorkMigrationName is the annotation used to identify resource migrated by
	// migration CRD name
	StorkMigrationName = "stork.libopenstorage.org/migrationName"
	// StorkMigrationTime is the annotation used to specify time of migration
	StorkMigrationTime = "stork.libopenstorage.org/migrationTime"
	// StorkMigrationCRDActivateAnnotation is the annotation used to keep track of
	// the value to be set for activating crds
	StorkMigrationCRDActivateAnnotation = "stork.libopenstorage.org/migrationCRDActivate"
	// StorkMigrationCRDDeactivateAnnotation is the annotation used to keep track of
	// the value to be set for deactivating crds
	StorkMigrationCRDDeactivateAnnotation = "stork.libopenstorage.org/migrationCRDDeactivate"
	// PVReclaimAnnotation for pvc's reclaim policy
	PVReclaimAnnotation = "stork.libopenstorage.org/reclaimPolicy"
	// StorkAnnotationPrefix for resources created/managed by stork
	StorkAnnotationPrefix = "stork.libopenstorage.org/"
)
View Source
const (

	// StorkMigrationScheduleCopied indicating migrated migrationscheduleobject
	StorkMigrationScheduleCopied = "stork.libopenstorage.org/static-copy"
	// StorkMigrationScheduleName is the annotation to keep track of child migration
	// objects triggered by migration schedule
	StorkMigrationScheduleName = "stork.libopenstorage.org/migration-schedule-name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterPairController

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

ClusterPairController controller to watch over ClusterPair

func NewClusterPair

NewClusterPair creates a new instance of ClusterPairController.

func (*ClusterPairController) Init

Init initialize the cluster pair controller

func (*ClusterPairController) Reconcile

Reconcile manages ClusterPair resources.

type MigrationController

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

MigrationController reconciles migration objects

func NewMigration

NewMigration creates a new instance of MigrationController.

func (*MigrationController) Init

func (m *MigrationController) Init(mgr manager.Manager, migrationAdminNamespace string, migrationMaxThreads int) error

Init Initialize the migration controller

func (*MigrationController) Reconcile

func (m *MigrationController) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile manages Migration resources.

type MigrationScheduleController

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

MigrationScheduleController reconciles MigrationSchedule objects

func NewMigrationSchedule

NewMigrationSchedule creates a new instance of MigrationScheduleController.

func (*MigrationScheduleController) Init

Init Initialize the migration schedule controller

func (*MigrationScheduleController) Reconcile

Reconcile manages MigrationSchedule resources.

Jump to

Keyboard shortcuts

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