storageversionmigrator

package
v1.35.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ResourceVersionControllerName string = "resource-version-controller"
)

Variables

This section is empty.

Functions

func IsConditionTrue

func IsConditionTrue(svm *svmv1alpha1.StorageVersionMigration, conditionType svmv1alpha1.MigrationConditionType) bool

IsConditionTrue returns true if the StorageVersionMigration has the given condition It is exported for use in tests

Types

type ResourceVersionController

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

ResourceVersionController adds the resource version obtained from a randomly nonexistent namespace to the SVM status before the migration is initiated. This resource version is utilized for checking freshness of GC cache before the migration is initiated.

func (*ResourceVersionController) Run

type SVMController

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

func NewSVMController

func NewSVMController(
	ctx context.Context,
	kubeClient kubernetes.Interface,
	dynamicClient *dynamic.DynamicClient,
	svmInformer svminformers.StorageVersionMigrationInformer,
	controllerName string,
	mapper meta.ResettableRESTMapper,
	dependencyGraphBuilder *garbagecollector.GraphBuilder,
) *SVMController

func (*SVMController) Name

func (svmc *SVMController) Name() string

func (*SVMController) Run

func (svmc *SVMController) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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