feat(fleet): add pipeline-based management cluster registration#5436
Merged
openshift-merge-bot[bot] merged 7 commits intoMay 30, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds pipeline-driven fleet registration so management cluster provisioning creates/updates Fleet Stamp and ManagementCluster records in CosmosDB, replacing the backend migration controller path.
Changes:
- Adds
fleet registerCLI command and Helm Job/pipeline integration. - Adds config/schema support for stamp auto-approval.
- Removes the backend ManagementClusterMigration controller and tests.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
topology.yaml |
Adds Fleet Registration as a management child service group. |
fleet/registration/Chart.yaml |
Defines the new registration Helm chart. |
fleet/registration/values.yaml |
Provides Helm values for the registration Job. |
fleet/registration/templates/registration.job.yaml |
Renders the Kubernetes Job that runs fleet register. |
fleet/registration/pipeline.yaml |
Adds the rollout pipeline for registration. |
fleet/registration/zz_fixture_TestHelmTemplate_dev_westus3_svc_1_fleet_reg_dev_westus3_mgmt_1.yaml |
Adds rendered Helm fixture output. |
fleet/main.go |
Wires the new register subcommand. |
fleet/cmd/register/options.go |
Adds CLI options, validation, and DB client completion. |
fleet/cmd/register/cmd.go |
Implements Stamp and ManagementCluster registration writes. |
config/config.yaml |
Adds default fleet registration config. |
config/config.schema.json |
Adds schema for fleet registration config. |
config/rendered/dev/ci01/centralus.yaml |
Updates rendered dev config. |
config/rendered/dev/cspr/westus3.yaml |
Updates rendered dev config. |
config/rendered/dev/dev/westus3.yaml |
Updates rendered dev config. |
config/rendered/dev/perf/westus3.yaml |
Updates rendered dev config. |
config/rendered/dev/pers/westus3.yaml |
Updates rendered dev config. |
config/rendered/dev/prow/centralus.yaml |
Updates rendered dev config. |
backend/pkg/app/backend.go |
Stops constructing/running the migration controller. |
backend/pkg/controllers/managementclustercontrollers/management_cluster_migration.go |
Removes migration controller implementation. |
backend/pkg/controllers/managementclustercontrollers/management_cluster_migration_test.go |
Removes migration controller tests. |
ecf1f70 to
fc2cf07
Compare
fc2cf07 to
f6568bb
Compare
Adds the fleet register CLI command and its pipeline integration, and removes the ManagementClusterMigrationController https://redhat.atlassian.net/browse/ARO-26925 The register command writes Stamp and ManagementCluster documents directly to CosmosDB during management cluster provisioning — the same data the migration controller previously synced from ClustersService, but driven from the pipeline instead. What this PR does: - fleet register subcommand that creates/updates Stamp and ManagementCluster documents in CosmosDB - Registration pipeline (fleet/registration/) that runs the command as a Kubernetes Job during management cluster provisioning - Deterministic provision shard ID generation via UUID v5 same namespace UUID and AKS cluster name as the existing cluster-service Makefile, so both paths always produce the same ID - Removes the ManagementClusterMigrationController from the backend — the register command now owns Stamp and ManagementCluster document creation What this PR does NOT touch: - ClustersService provision shard registration (still helm-based) - Maestro consumer registration (still via maestro agent job) - These will move to fleet controllers in follow-up PRs What this PR does NOT touch: - ClustersService provision shard registration (still helm-based) - Maestro consumer registration (still via maestro agent job) - These will move to fleet controllers in follow-up PRs
f6568bb to
a33747b
Compare
819efc6 to
afe99ab
Compare
e62140f to
b3d7246
Compare
b3d7246 to
d321241
Compare
Collaborator
Author
|
/test e2e-parallel |
Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
Collaborator
Author
|
/test verify |
bennerv
reviewed
May 30, 2026
bennerv
reviewed
May 30, 2026
bennerv
reviewed
May 30, 2026
bennerv
reviewed
May 30, 2026
bennerv
reviewed
May 30, 2026
bennerv
reviewed
May 30, 2026
bennerv
reviewed
May 30, 2026
bennerv
reviewed
May 30, 2026
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bennerv, geoberle The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the fleet register CLI command and its pipeline integration, and removes the ManagementClusterMigrationController
The register command writes Stamp and ManagementCluster documents directly to CosmosDB during management cluster provisioning — the same data the migration controller previously synced from ClustersService, but driven from the pipeline instead.
What this PR does:
What this PR does NOT touch:
https://redhat.atlassian.net/browse/ARO-26925
Testing
The
Fleet should have registered stamps with ready management clustersE2E test verifies that registration succeeded and an approved stamp and ready mgmt cluster are available in cosmos DB.Special notes for your reviewer
PR Checklist