Add catalog destination state schema

This commit is contained in:
2026-06-19 15:28:03 +00:00
parent a95662226f
commit 20129bfff5
9 changed files with 834 additions and 36 deletions

View File

@@ -161,7 +161,10 @@ func buildReconcileStateReport(ctx context.Context, backend storage.Backend, pip
if document.SingleOwner != nil {
return reconcileSingleOwnerState(ctx, backend, statePath, *document.SingleOwner, scope, report, options)
}
return reconcileSharedRootState(ctx, backend, statePath, *document.SharedRoot, scope, report, options)
if document.SharedRoot != nil {
return reconcileSharedRootState(ctx, backend, statePath, *document.SharedRoot, scope, report, options)
}
return ReconcileStateReport{}, unsupportedStateDocumentError(document)
}
func reconcileSingleOwnerState(ctx context.Context, backend storage.Backend, statePath string, destinationState state.DistributorState, scope state.OwnerScope, report ReconcileStateReport, options ReconcileStateOptions) (ReconcileStateReport, error) {