Expand description
The Repository CRD — a namespaced kopia repository. ADR-0003 §3.1.
Structs§
- Bootstrap
Spec - Tuning for the bootstrap/discovery mover Job, shared by
RepositoryandClusterRepository. Bootstrap connects (or, withcreate, creates) an object-store repository the operator cannot reach in-process. - Catalog
Status - Status of catalog materialization for
origin: discoveredSnapshotCRs. - Epoch
Parameters - kopia epoch-manager parameters. Absent fields are left at whatever the repository already has (kopia’s defaults, noted per field).
- Observed
Blob Retention - The blob retention the repository ACTUALLY reports, mirrored into
statusfromkopia repository statusat the last bootstrap. - Observed
Epoch Parameters - The epoch parameters the repository ACTUALLY reports, mirrored into
statusfromkopia repository statusat the last bootstrap. - Observed
Repository Parameters - Observed kopia repository parameters, mirrored into
status. - Repository
- Auto-generated derived type for RepositorySpec via
CustomResource - Repository
Health Probe Spec - Backend health probe, shared by
RepositoryandClusterRepository. On by default. - Repository
Health Spec - Repository health thresholds, shared by
RepositoryandClusterRepository. - Repository
Health Status - Backend health-probe state, shared by
RepositoryandClusterRepository. Pinned by the reconciler whenspec.health.probeis enabled so the next reconcile can tell whether a probe is due and how many consecutive failures have accrued (the debounce that keeps a transient blip from raising the loudRepositoryVanished/BackendReachable=Falsecondition). - Repository
Parameters - Mutable kopia repository parameters (
kopia repository set-parameters), shared byRepositoryandClusterRepository. - Repository
Spec - A kopia repository owned by one namespace, referenced by
SnapshotPolicys andRestores. - Repository
Status - Observed state of a
Repository, carrying resolved values pinned by the reconciler. - Retention
Window - How long a blob stays locked once written.
- Storage
Stats - Aggregate repository storage figures from the last catalog scan.
Enums§
- Blob
Retention - Object-lock blob retention (
kopia repository set-parameters --retention-mode/--retention-period). - Probe
OnFailure - What sustained backend-probe failure (past
failureThreshold) does to the repository (defaultDegrade).Degrademoves it toDegraded, pausing backups and replication until a re-connect succeeds — recovery is automatic (maintenance also pauses for a confirmed-unreachable/vanished backend, but keeps running for a probe deadline kill, where index compaction is often the cure).Alertkeeps the repositoryReadyand only raises theBackendReachablecondition + Warning event + metric; backups keep running against the failing backend. Neither ever auto-recreates. - Repository
Phase - Lifecycle phase of a repository. A freshly admitted CR starts in
Pending.
Functions§
- resolve_
index_ blob_ warn_ threshold - Resolve the effective index-blob warning threshold from an optional
spec.health. Pure, so it’s shared by the admission webhook, the controller, and tests without forking the default/disable semantics: