Skip to content

Revert "add check on version of drop in configs" - #13939

Merged
estesp merged 2 commits into
containerd:mainfrom
akhilerm:revert-drop-in-config-version-check
Aug 20, 2026
Merged

estesp merged 2 commits into
containerd:mainfrom
akhilerm:revert-drop-in-config-version-check

Conversation

@akhilerm

Copy link
Copy Markdown
Member

This reverts commit 21248d0.

Since the config merge now happens after migration, the version check need not be performed before the migration.

Copilot AI lite review requested due to automatic review settings August 11, 2026 09:38
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Aug 11, 2026
@akhilerm akhilerm added the cherry-pick/2.3.x Change to be cherry picked to release/2.3 label Aug 11, 2026
This reverts commit 21248d0.

Signed-off-by: Akhil Mohan <[email protected]>
@akhilerm
akhilerm force-pushed the revert-drop-in-config-version-check branch from 3b36e17 to a8ed546 Compare August 11, 2026 09:39
@akhilerm

Copy link
Copy Markdown
Member Author

/cc @dmcgowan @samuelkarp

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

Reverts a previously added guard that rejected imported (drop-in) config files with a higher version than the root config, based on the assumption that configs are now migrated before being merged.

Changes:

  • Removed the “drop-in version must not exceed root version” check from LoadConfigWithPlugins.
  • Updated the corresponding unit test to no longer expect an error when an import has a higher version.

Reviewed changes

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

File Description
cmd/containerd/server/config/config.go Removes the root-vs-import config version comparison during config load.
cmd/containerd/server/config/config_test.go Updates the import-higher-version test to expect success instead of an error.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings August 11, 2026 09:41

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 2 out of 2 changed files in this pull request and generated no new comments.

Suppressed comments (1)

cmd/containerd/server/config/config_test.go:379

  • This test now only asserts that loading succeeds, but it no longer verifies the expected merged result (e.g., resulting config version, imported values, and merged fields). Adding a few assertions here will ensure the reverted behavior (allow higher-version drop-in) remains correct and won’t silently regress.
	var out Config
	err = LoadConfig(context.Background(), filepath.Join(tempDir, "data1.toml"), &out)
	assert.NoError(t, err)
}

Copilot AI review requested due to automatic review settings August 11, 2026 09:59

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 2 out of 2 changed files in this pull request and generated no new comments.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Aug 20, 2026
@estesp
estesp added this pull request to the merge queue Aug 20, 2026
Merged via the queue into containerd:main with commit 5090fb7 Aug 20, 2026
90 of 98 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Aug 20, 2026
@akhilerm
akhilerm deleted the revert-drop-in-config-version-check branch August 20, 2026 16:58
@akhilerm

Copy link
Copy Markdown
Member Author

/cherry-pick release/2.3

@k8s-infra-cherrypick-robot

Copy link
Copy Markdown

@akhilerm: new pull request created: #13995

Details

In response to this:

/cherry-pick release/2.3

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick/2.3.x Change to be cherry picked to release/2.3 size/S

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants