storageversionmigrator

package
v1.31.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 25 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 NewResourceVersionController

func NewResourceVersionController(
	ctx context.Context,
	kubeClient clientset.Interface,
	discoveryClient *discovery.DiscoveryClient,
	metadataClient metadata.Interface,
	svmInformer svminformers.StorageVersionMigrationInformer,
	mapper meta.ResettableRESTMapper,
) *ResourceVersionController

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