Skip to main content

Module maintenance

Module maintenance 

Source
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
MaintenanceSchedule
Quick + full cron schedules plus a shared timezone. ADR §3.7.
MaintenanceSpec
Maintenance schedule + ownership lease for one Repository/ClusterRepository. ADR §3.7.
MaintenanceStatus
Observed maintenance state: lease holder plus per-kind run results. ADR §3.7.
Ownership
Ownership-lease configuration. At most one Maintenance may own a repository. ADR §3.7.
OwnershipStatus
Observed ownership-lease state: who holds it and since when. ADR §3.7.
RepositoryMaintenanceSpec
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§

TakeoverPolicy
What to do when another owner already holds the lease. Closed enum. ADR §3.7.

Functions§

default_maintenance_schedule
The schedule an operator-managed Maintenance uses when the owning Repository/ClusterRepository does 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.