migration

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control interface {
	Submit(src api.ResourceRef, dst api.ResourceRef, opts Options) (Result, error)
	Query(ID types.UID) (Result, error)
}

type MigrateState

type MigrateState string
const (
	MigrateExecuting MigrateState = "Executing"
	MigrateSucceeded MigrateState = "Succeeded"
	MigrateFailed    MigrateState = "Failed"
)

type Options

type Options struct {
	// Specify Replicas that should be migrated.
	// Default to migrate all replicas
	Replicas *int32
	// The maximum number of pods that can be scheduled above the desired number of pods.
	// This can not be 0 if MaxUnavailable is 0.
	// Defaults to 1.
	MaxSurge *int32
	// TimeoutSeconds indicates the timeout seconds that migration exceeded.
	// Defaults to no limited.
	TimeoutSeconds *int32
}

type Result

type Result struct {
	ID      types.UID
	State   MigrateState
	Message string

	SrcMigratedReplicas int32
	DstMigratedReplicas int32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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