Expand description
The Restore CRD — a restore from a snapshot/identity to a PVC, or a passive
populator source. ADR-0001 §3.6, ADR-0003 §4.6.
Structs§
- From
Policy - The
fromPolicysource: resolve a snapshot via aSnapshotPolicy’s identity, even when noSnapshotCR exists yet. - Identity
Source - The
identitysource: a raw kopiausername@hostname:pathidentity; requiresspec.repository. - Populator
Target - Passive-populator target marker; its presence selects populator mode.
- PvcTemplate
- Template for a PVC the operator creates as the restore target.
- Resolved
Restore - The source resolved and pinned at admission, so a restore never silently retargets.
- Restore
- Auto-generated derived type for RestoreSpec via
CustomResource - Restore
Options - kopia restore behavior knobs (M2 flag sweep). Every
Optionfield’sNonereproduces kopia’s own default — an all-None,enableFileDeletion: falseinstance yields the exact samerestore_argsargv produced before these fields existed. The tri-state booleans map to kopia’s--[no-]flaggrammar (Some(true)→--flag,Some(false)→--no-flag,None→ omit). - Restore
Policy - How the restore reacts to a missing snapshot and how long it waits.
- Restore
Progress - Live progress counters patched by the mover during a restore.
- Restore
Spec - A restore operation from a snapshot/identity into a PVC, or a passive populator source. Desired state of a Restore: where to read from, where to write to, and how to behave when the snapshot is missing.
- Restore
Status - Observed state of a Restore, written by the controller/mover.
- Restore
Target Status - Resolved restore target details written to status.
- Restore
Timing - Start/end timestamps of a restore run.
Enums§
- OnMissing
Snapshot - What to do when the resolved source matches no snapshot. Defaults to
Fail(fail-closed) so an explicit restore can never silently no-op; chooseContinueto provision an empty volume instead (deploy-or-restore). - Resolution
Outcome - Which outcome the source resolution pinned, once and never re-resolved.
- Restore
Phase - Lifecycle phase of a restore.
- Restore
Source - Where to restore from; exactly one variant.
- Restore
Target - Where to restore to; exactly one variant.