pub fn validate_repository_maintenance(
maintenance: &RepositoryMaintenanceSpec,
cluster_scoped: bool,
) -> Vec<ValidationError>Expand description
Validate a spec.maintenance block on a Repository/ClusterRepository,
accumulating problems (ADR §3.7):
- any override schedule’s quick/full crons must parse (same parser as runtime);
namespaceis cluster-scope only — it selects where the namespaced managedMaintenancelands for aClusterRepository, and is forbidden on a namespacedRepository(whoseMaintenancealways lives in its own ns).
cluster_scoped is the only thing that differs between the two repository
kinds, so one validator serves both call sites.