Skip to content

Remove cluster-service to cosmos nodepool migration - #5059

Merged
openshift-merge-bot[bot] merged 1 commit into
mainfrom
cs-162-remove-sync-controller
May 14, 2026
Merged

openshift-merge-bot[bot] merged 1 commit into
mainfrom
cs-162-remove-sync-controller

Conversation

@deads2k

@deads2k David Eads (deads2k) commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator

These controllers have done their work and the frontend keeps track of all existing data.

/hold

#5058 must go to prod before merging

@@ -1,142 +0,0 @@
// Copyright 2026 Microsoft Corporation

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep this one for now because of defaulting on CS side occurring right now? we are getting it on nodepool creation on the frontend but if at some point we remove the reads from there and we haven't moved defaulting to the RP we would stop getting it

@deads2k

Copy link
Copy Markdown
Collaborator Author

/hold

#5058 must go to prod before merging

Copilot AI review requested due to automatic review settings May 8, 2026 00:00
@deads2k
David Eads (deads2k) force-pushed the cs-162-remove-sync-controller branch from 5d4aae6 to 2478750 Compare May 8, 2026 00:00
@deads2k

Copy link
Copy Markdown
Collaborator Author

/hold cancel

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the now-obsolete “Cluster Service → Cosmos DB” nodepool property migration/sync path, relying on the frontend/Cosmos to be the source of truth for existing nodepool data (per the direction in #5058).

Changes:

  • Removed CS→RP nodepool conversion helpers (including disk/persistence default mapping) from internal/ocm.
  • Deleted backend controllers (and tests) that periodically migrated/synced nodepool properties from Cluster Service into Cosmos.
  • Unregistered the removed controllers from backend startup.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/ocm/convert.go Removes CS→RP nodepool conversion and CS-string-to-RP-enum mapping helpers tied to the migration path.
internal/database/convert_defaults_consistency_test.go Drops tests that validated CS→RP default behavior for nodepools (conversion no longer exists).
backend/pkg/controllers/nodepoolpropertiescontroller/node_pool_properties_sync.go Removes controller that synced nodepool version/channel from Cluster Service into Cosmos.
backend/pkg/controllers/nodepoolpropertiescontroller/node_pool_properties_sync_test.go Removes tests for the nodepool properties sync controller.
backend/pkg/controllers/nodepoolpropertiescontroller/node_pool_customer_properties_migration.go Removes controller that migrated “customer properties” (e.g., VMSize) from Cluster Service into Cosmos.
backend/pkg/controllers/nodepoolpropertiescontroller/node_pool_customer_properties_migration_test.go Removes tests for the customer properties migration controller.
backend/pkg/app/backend.go Stops constructing/running the removed nodepool migration/sync controllers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@miguelsorianod

Copy link
Copy Markdown
Collaborator

/lgtm

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD bfb7f26 and 2 for PR HEAD 2478750 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD ca42f81 and 1 for PR HEAD 2478750 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 41a9478 and 0 for PR HEAD 2478750 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/hold

Revision 2478750 was retested 3 times: holding

@miguelsorianod

Copy link
Copy Markdown
Collaborator

/retest

@deads2k

Copy link
Copy Markdown
Collaborator Author

/hold cancel

@miguelsorianod

Copy link
Copy Markdown
Collaborator

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label May 12, 2026
@openshift-ci

openshift-ci Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, miguelsorianod

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 6c242e8 and 2 for PR HEAD 66e0090 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 46858cf and 1 for PR HEAD 66e0090 in total

These controllers have done their work and the frontend keeps track of
all existing data.
@deads2k
David Eads (deads2k) force-pushed the cs-162-remove-sync-controller branch from 66e0090 to 08c1836 Compare May 13, 2026 15:55
Copilot AI review requested due to automatic review settings May 13, 2026 15:55
@openshift-ci openshift-ci Bot removed the lgtm label May 13, 2026
@openshift-ci

openshift-ci Bot commented May 13, 2026

Copy link
Copy Markdown
Contributor

New changes are detected. LGTM label has been removed.

@deads2k

Copy link
Copy Markdown
Collaborator Author

simple rebase

/label lgtm

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 1a13cee and 2 for PR HEAD 08c1836 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 7c0637c and 1 for PR HEAD 08c1836 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD f4a4739 and 0 for PR HEAD 08c1836 in total

@openshift-merge-bot
openshift-merge-bot Bot merged commit 688210d into main May 14, 2026
19 of 20 checks passed
@openshift-merge-bot
openshift-merge-bot Bot deleted the cs-162-remove-sync-controller branch May 14, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants