Documentation
¶
Index ¶
- Variables
- func All(ctx context.Context, client clientpkg.Client, platformNamespace string, ...) ([]runtime.Object, []error)
- func GVKFrom(scheme *runtime.Scheme, obj runtime.Object) (schema.GroupVersionKind, error)
- func IncludesSharedSecrets(objects []runtime.Object) bool
- func ToYAML(objects []runtime.Object) ([]byte, error)
- type LogFn
Constants ¶
This section is empty.
Variables ¶
var ErrMissingName = errors.New("backup: missing namespace or name")
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 IncludesSharedSecrets ¶ added in v0.38.0
IncludesSharedSecrets reports whether a backup holds shared secrets. vCluster Platform 5.0 no longer serves them, so such a backup cannot be restored into it as is.