cosmosmigration

package
v0.0.0-...-2a7b7bc Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateAllSubscriptionsOrDie

func MigrateAllSubscriptionsOrDie(ctx context.Context, resourcesDBClient corecosmosstorage.ResourcesDBClient, kubeApplierDBClients kubeappliercosmosstorage.KubeApplierDBClients)

MigrateAllSubscriptionsOrDie runs the Cosmos migration once across every subscription currently in the Resources container and panics on the first unrecoverable error. It is intended for integration-test setup where the long-running subscription-watching controller is not wired in; production migration runs as the controller returned by NewCosmosMigrationController.

func NewCosmosMigrationController

func NewCosmosMigrationController(
	resourcesDBClient corecosmosstorage.ResourcesDBClient,
	kubeApplierDBClients kubeappliercosmosstorage.KubeApplierDBClients,
	backendInformers coreinformers.BackendInformers,
	resyncDuration time.Duration,
) controllerutils.Controller

NewCosmosMigrationController creates a subscription-watching controller that iterates depth-first through every named document type in the Resources container and the per-management-cluster kube-applier containers, performing a read/write cycle to force Cosmos DB re-serialization.

Types

This section is empty.

Jump to

Keyboard shortcuts

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