Repository navigation
Revert "add check on version of drop in configs" - #13939
Conversation
This reverts commit 21248d0. Signed-off-by: Akhil Mohan <[email protected]>
3b36e17 to
a8ed546
Compare
|
/cc @dmcgowan @samuelkarp |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
}
Signed-off-by: Akhil Mohan <[email protected]>
|
/cherry-pick release/2.3 |
|
@akhilerm: new pull request created: #13995 DetailsIn response to this:
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. |
This reverts commit 21248d0.
Since the config merge now happens after migration, the version check need not be performed before the migration.