preservation

package
v0.0.0-...-77f3d0c Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

func Backup(
	ctx context.Context,
	c client.Client,
	log *zap.Logger,
	clusterInstance *v1alpha1.ClusterInstance,
) (err error)

Backup preserves ConfigMaps and Secrets based on the specified preservation mode. The outcome of each backup is logged and any errors encountered are aggregated.

func Cleanup

func Cleanup(
	ctx context.Context,
	c client.Client,
	deletionHandler *deletion.DeletionHandler,
	log *zap.Logger,
	clusterInstance *v1alpha1.ClusterInstance,
) (completedCleanup bool, err error)

Cleanup deletes preserved ConfigMaps and Secrets. The outcome of each deletion is logged and any errors encountered are aggregated.

func Restore

func Restore(
	ctx context.Context,
	c client.Client,
	log *zap.Logger,
	clusterInstance *v1alpha1.ClusterInstance,
) (err error)

Restore restores ConfigMaps and Secrets from preserved data. The outcome of each restore is logged and any errors encountered are aggregated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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