backup

package
v0.37.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingName = errors.New("backup: missing namespace or name")
View Source
var PlatformSecretNames = []string{"loft-cert", "loft-network-control-key", "loft-license-cache"}

PlatformSecretNames are the platform's identity Secrets. They are created once at first start and cannot be regenerated without consequences: loft-cert (license instance identity, OIDC signing key, token CA), loft-network-control-key (coordinator key every connected vCluster's tunnel is bound to) and loft-license-cache (last license; gives the 7-day grace period if the license server is unreachable).

Functions

func All

func All(ctx context.Context, client clientpkg.Client, platformNamespace string, skip []string, infoFn LogFn) ([]runtime.Object, []error)

All backs up the platform management plane. platformNamespace is the namespace the platform is installed into; it is only used to find the platform Secrets (skip "platformsecrets" to leave them out).

func GVKFrom

func GVKFrom(scheme *runtime.Scheme, obj runtime.Object) (schema.GroupVersionKind, error)

func ToYAML

func ToYAML(objects []runtime.Object) ([]byte, error)

Types

type LogFn

type LogFn func(msg string)

Jump to

Keyboard shortcuts

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