Repository navigation
settings: add merge-default-eviction-settings and kernel.zram.size - #4991
Merged
ginglis13 merged 4 commits intoNov 7, 2026
Merged
Conversation
qianxjcraig
force-pushed
the
br4916-settings-032-20261030
branch
from
November 4, 2026 22:56
2cfa9ee to
97b7e64
Compare
Signed-off-by: Craig Qian <qianxj@amazon.com>
Signed-off-by: Craig Qian <qianxj@amazon.com>
Render settings.kernel.zram changes into corndog.toml without restarting swap preparation. The new capacity takes effect after reboot. Signed-off-by: Craig Qian <qianxj@amazon.com>
Remove the zram settings and service on downgrade. Signed-off-by: Craig Qian <qianxj@amazon.com>
qianxjcraig
force-pushed
the
br4916-settings-032-20261030
branch
from
November 6, 2026 23:54
97b7e64 to
5f14f8b
Compare
Contributor
Author
Contributor
Author
|
Tested upgrade and downgrade on aws-k8s-1.35 (x86_64), with images built locally against core-kit from develop. 1.68.1 -> 1.69.0 1.69.0 -> 1.68.1 (after setting 1.68.1: the new settings are rejected Rendered config, 1.68.1 Rendered config, 1.69.0 (after setting |
qianxjcraig
marked this pull request as ready for review
November 7, 2026 00:09
jpculp
approved these changes
Nov 7, 2026
ginglis13
approved these changes
Nov 7, 2026
piyush-jena
reviewed
Nov 7, 2026
| "settings.kernel.zram", | ||
| "services.zram", | ||
| ])) | ||
| } |
Contributor
There was a problem hiding this comment.
You will need another migrations for the metadata. So another rust crate with main.rs containing this:
fn run() -> Result<()> {
migrate(AddMetadataMigration(&[SettingMetadata {
metadata: &["affected-services"],
setting: "settings.kernel.zram",
}]))
}
This is because you added this in the shared-defaults:
[metadata.settings.kernel.zram]
affected-services = ["zram"]
piyush-jena
requested changes
Nov 7, 2026
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.
Issue number:
Related: #4916, #4903
Description of changes:
Bump
bottlerocket-settings-modelsto v0.33.0, and add migrations and defaults for:settings.kubernetes.merge-default-eviction-settings(feat: k8s: add merge-default-eviction-settings setting bottlerocket-settings-sdk#159, kubelet: support mergeDefaultEvictionSettings bottlerocket-core-kit#1089)settings.kernel.zram.size(feat: kernel: add configurable zram size bottlerocket-settings-sdk#160, corndog: support configurable boot-time zram size bottlerocket-core-kit#1093), with azramservice that re-renderscorndog.tomlwithout restarting anythingDepends on:
Testing done:
cargo test --locked --workspacepasses, and the mergedaws-k8s-1.35defaults contain thezramservice.Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.