restore

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package restore defines library functions for restoring workspace data from backup images

Index

Constants

View Source
const (
	WorkspaceRestoreContainerName = "workspace-restore"
)

Variables

This section is empty.

Functions

func GetWorkspaceRestoreInitContainer

func GetWorkspaceRestoreInitContainer(
	ctx context.Context,
	workspace *common.DevWorkspaceWithConfig,
	k8sClient client.Client,
	options Options,
	scheme *runtime.Scheme,
	log logr.Logger,
) (*corev1.Container, *corev1.Secret, error)

GetWorkspaceRestoreInitContainer creates an init container that restores workspace data from a backup image. The restore container uses the existing workspace-recovery.sh script to extract backup content.

func IsWorkspaceRestoreRequested

func IsWorkspaceRestoreRequested(workspace *dw.DevWorkspaceTemplateSpec) bool

Types

type Options

type Options struct {
	Image      string
	PullPolicy corev1.PullPolicy
	Resources  *corev1.ResourceRequirements
	Env        []corev1.EnvVar
}

Jump to

Keyboard shortcuts

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