refactor(fleet): remove Maestro management cluster registration #7817
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7817"
general
weight: 0.35
geoberle
What
MaestroRegisteredconditions during lifecycle reconciliation, preserving unrelated conditions and existing readiness behavior. Retain the sharedManagementClusterConditionMaestroRegisteredconstant while cleanup uses it. Mark the cleanup as temporary until rollout reaches all environments and the condition is gone.Why
Follow-up to https://github.com/Azure/ARO-HCP/pull/7665: management cluster registration and readiness must no longer depend on Maestro.
Testing
Latest vendoring correction, rebased onto
79bc58595a08c100b28b43c1719a07549a7d2bb4:vendor/modules.txt.make vendorandmake verify-vendorpassed. The generated correction only removes unused Maestro vendor files and its modules entry: 21 files, 5,689 deletions, with no module or unrelated dependency drift.This is host-side offline build-consumer validation, not a full container/all-image/E2E run. Baseline and repaired builds both emitted nonfatal optional personal-config schema warnings; no configuration-validation success is claimed. Latest-head CI has not yet been verified.
Earlier validation, before the latest rebase/vendor correction:
make verify, workspace-widemake test-compile, affected tests, scoped lint, and intermediate controller-commit tests passed.make test-unit, affected OCM/Cosmos/kube-applier packages, admin stamp and mock-Cosmos informer tests, generation, configuration materialization, pipeline validation/documentation generation, and Helm fixture tests passed during development. These broad checks were not all repeated on the latest head; the latest checks are listed above.validProvisionShardBuilder()no longer supplies Maestro configuration. A populated legacy-config case compares complete conversion results, normalizing only the generated Ready timestamp; independent expected-field assertions remain. Complete OCM package tests and scoped lint/formatting passed.Behavioral coverage includes Maestro-free creation/adoption/conversion, case-insensitive AKS identity, duplicate and stored-shard safeguards, legacy persisted JSON, and preservation of existing CS configuration. Negative checks confirmed the fleet prerequisite guard rejects restoring the Maestro dependency or removing the required ACM dependency.
Legacy-condition regression coverage is integrated into the existing
TestSyncOncecases rather than a standalone matrix. It checks persisted cleanup, unrelated status preservation, missing prerequisites, no-write behavior, cache immutability, and repeat-reconcile idempotence. Temporarily removing the cleanup caused four existing-table regression cases to fail; the controller was restored byte-for-byte afterward.The
e2e-parallelCI check passed on an earlier revision before later review changes. Not run locally: live Cosmos/deployed-CS/Azure E2E tests or full workspace lint. Production rollback was not tested. Compilation and dry-run inventory generation are not E2E execution.Special notes for your reviewer
The branch contains two signed commits over
79bc58595a08c100b28b43c1719a07549a7d2bb4:1.
05f05da324ef70e8cabb98f154b7fb949689463f— Fleet controller changes, including retirement of registration/gates, lifecycle cleanup, CS matching/conversion, tests, and regenerated Maestro vendor removal.2.
7569f4afedd2f501a2d0a05a4429251113210998— Admin API and fleet registration-command changes, schema/validation, configuration, and supporting fixtures.The registration README remains unchanged from the original PR base. Previous review fixes are preserved.
Legacy persisted Maestro fields are ignored on read and dropped on subsequent writes. Once dropped, a full revert and rerunning the unchanged old registration Job are insufficient to restore them: the old Fleet database client validates
ReplaceusingValidateManagementClusterUpdate, which rejects empty-to-populated changes to the immutable Maestro fields before persistence. Documents retaining their original fields with identical registration inputs avoid this specific obstacle. A supported restoration or migration path is needed before old writers can rely on fields that have been removed; this PR does not provide or validate a production recovery procedure. A controller-image-only rollback does not reconstruct the fields either.The lifecycle controller actively removes legacy
MaestroRegisteredconditions; Clusters Service registration and shared-ingress availability still gate readiness.Coordinate Fleet/AdminAPI and registration chart/image rollout, update removed
--maestro-arguments, and ensure CS supports Maestro-free shard creation. Unrelated Maestro infrastructure is intentionally retained.PR Checklist
No UI changes or new E2E tests; draft/WIP and screenshot checklist items are not applicable.
---
AI-generated. Review for accuracy.*
@machi1990 requested from Slack