controllers

package
v2.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 32 Imported by: 6

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"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterPairController

type ClusterPairController struct {
	Driver   volume.Driver
	Recorder record.EventRecorder
}

ClusterPairController controller to watch over ClusterPair

func (*ClusterPairController) Handle

func (c *ClusterPairController) Handle(ctx context.Context, event sdk.Event) error

Handle updates for ClusterPair objects

func (*ClusterPairController) Init

func (c *ClusterPairController) Init() error

Init initialize the cluster pair controller

type MigrationController

type MigrationController struct {
	Driver            volume.Driver
	Recorder          record.EventRecorder
	ResourceCollector resourcecollector.ResourceCollector
	// contains filtered or unexported fields
}

MigrationController reconciles migration objects

func (*MigrationController) Handle

func (m *MigrationController) Handle(ctx context.Context, event sdk.Event) error

Handle updates for Migration objects

func (*MigrationController) Init

func (m *MigrationController) Init(migrationAdminNamespace string) error

Init Initialize the migration controller

type MigrationScheduleController

type MigrationScheduleController struct {
	Driver   volume.Driver
	Recorder record.EventRecorder
}

MigrationScheduleController reconciles MigrationSchedule objects

func (*MigrationScheduleController) Handle

func (m *MigrationScheduleController) Handle(ctx context.Context, event sdk.Event) error

Handle updates for MigrationSchedule objects

func (*MigrationScheduleController) Init

Init Initialize the migration schedule controller

Jump to

Keyboard shortcuts

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