Skip to main content

Module restore

Module restore 

Source
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§

FromPolicy
The fromPolicy source: resolve a snapshot via a SnapshotPolicy’s identity, even when no Snapshot CR exists yet.
IdentitySource
The identity source: a raw kopia username@hostname:path identity; requires spec.repository.
PopulatorTarget
Passive-populator target marker; its presence selects populator mode.
PvcTemplate
Template for a PVC the operator creates as the restore target.
ResolvedRestore
The source resolved and pinned at admission, so a restore never silently retargets.
Restore
Auto-generated derived type for RestoreSpec via CustomResource
RestoreOptions
kopia restore behavior knobs (M2 flag sweep). Every Option field’s None reproduces kopia’s own default — an all-None, enableFileDeletion: false instance yields the exact same restore_args argv produced before these fields existed. The tri-state booleans map to kopia’s --[no-]flag grammar (Some(true)--flag, Some(false)--no-flag, None → omit).
RestorePolicy
How the restore reacts to a missing snapshot and how long it waits.
RestoreProgress
Live progress counters patched by the mover during a restore.
RestoreSpec
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.
RestoreStatus
Observed state of a Restore, written by the controller/mover.
RestoreTargetStatus
Resolved restore target details written to status.
RestoreTiming
Start/end timestamps of a restore run.

Enums§

OnMissingSnapshot
What to do when the resolved source matches no snapshot. Defaults to Fail (fail-closed) so an explicit restore can never silently no-op; choose Continue to provision an empty volume instead (deploy-or-restore).
ResolutionOutcome
Which outcome the source resolution pinned, once and never re-resolved.
RestorePhase
Lifecycle phase of a restore.
RestoreSource
Where to restore from; exactly one variant.
RestoreTarget
Where to restore to; exactly one variant.