Expand description
The Maintenance CRD — schedules kopia maintenance run quick + full and
manages the ownership lease. At most one per repository. ADR-0001 §3.7.
Structs§
- Maintenance
- Auto-generated derived type for MaintenanceSpec via
CustomResource - Maintenance
Schedule - Quick + full cron schedules plus a shared timezone. ADR §3.7.
- Maintenance
Spec - Maintenance schedule + ownership lease for one
Repository/ClusterRepository. ADR §3.7. - Maintenance
Status - Observed maintenance state: lease holder plus per-kind run results. ADR §3.7.
- Ownership
- Ownership-lease configuration. At most one
Maintenancemay own a repository. ADR §3.7. - Ownership
Status - Observed ownership-lease state: who holds it and since when. ADR §3.7.
- Repository
Maintenance Spec - Inline maintenance control on a
Repository/ClusterRepository(spec.maintenance). ADR §3.1/§3.7. - RunStatus
- Per-kind (quick/full) run status. ADR §3.7.
Enums§
- Takeover
Policy - What to do when another owner already holds the lease. Closed enum. ADR §3.7.
Functions§
- default_
maintenance_ schedule - The schedule an operator-managed
Maintenanceuses when the owningRepository/ClusterRepositorydoes not override it: quick every 6h (30m jitter), full daily at 03:00 (1h jitter). Shared by the webhook (defaulting), the controller (projection), and tests, so the default lives in exactly one place. ADR §3.7.