Skip to content

Conversation

@utkuozdemir
Copy link
Member

Drop old migrations and deprecated types which were kept only for the migrations.

@utkuozdemir utkuozdemir requested a review from Copilot December 22, 2025 10:40
@utkuozdemir utkuozdemir self-assigned this Dec 22, 2025
@utkuozdemir utkuozdemir force-pushed the chore/drop-old-migrations branch 2 times, most recently from 6bbb779 to fdab8fa Compare December 22, 2025 10:48
Copy link

Copilot AI left a comment

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 drops all migrations older than v1.0.0 and removes deprecated resource types that were only maintained for those migrations. The goal is to simplify the codebase by requiring users to upgrade to v1.0.0 first before upgrading to newer versions, rather than supporting direct upgrades from very old versions.

Key changes:

  • Replaced 46 old migration callbacks with a gapError function that returns an error message
  • Removed deprecated resource types: ClusterMachineTemplate, ExtensionsConfigurationStatus, and DeprecatedLinkCounter
  • Deleted migration helper functions and tests for old migrations

Reviewed changes

Copilot reviewed 24 out of 25 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/backend/runtime/omni/migration/migrations.go Replaced old migration callbacks with gapError function
internal/backend/runtime/omni/migration/manager.go Updated migration list to use gapError for pre-v1.0.0 migrations
internal/backend/runtime/omni/migration/migration_test.go Removed tests for old migrations, kept tests for v1.0+ migrations
internal/backend/runtime/omni/migration/helpers.go Deleted file containing helper functions only used by old migrations
internal/backend/runtime/omni/migration/compat.go Deleted file with deprecated constants and helper functions
internal/backend/runtime/omni/migration/deprecated_resources_test.go Deleted test file for deprecated resources
internal/backend/runtime/omni/state_access.go Removed references to deprecated resource types
internal/integration/auth_test.go Removed test cases for deprecated resources
client/pkg/omni/resources/omni/cluster_machine_template.go Deleted deprecated ClusterMachineTemplate resource definition
client/pkg/omni/resources/omni/extensions_configuration_status.go Deleted deprecated ExtensionsConfigurationStatus resource definition
client/pkg/omni/resources/siderolink/linkcounter.go Deleted deprecated DeprecatedLinkCounter resource definition
client/api/omni/specs/omni.proto Reserved field 1 in ClusterSpec, removed deprecated message types
frontend/src/api/resources.ts Removed deprecated resource type constants

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

@utkuozdemir utkuozdemir force-pushed the chore/drop-old-migrations branch from fdab8fa to 9124766 Compare December 22, 2025 10:54
Drop old migrations and deprecated types which were kept only for the migrations.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
@utkuozdemir utkuozdemir force-pushed the chore/drop-old-migrations branch from 9124766 to dc2b1c9 Compare December 22, 2025 11:28
Copy link
Member

@smira smira left a comment

Choose a reason for hiding this comment

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

does it fail if we try to start from pre-1.0.0 version?

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.

2 participants