Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

settings: add kernel settings extension #3727

Merged

Conversation

sam-berning
Copy link
Contributor

Issue number:

Closes #3653

Description of changes:

Ports kernel settings to a settings extension.

Testing done:

Built an aws-dev variant with the settings-kernel package installed, and launched an ec2 instance with it.

Kernel settings in the API and the setting extension both behaved as expected.

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.

Signed-off-by: Sam Berning <bernings@amazon.com>
Signed-off-by: Sam Berning <bernings@amazon.com>
Signed-off-by: Sam Berning <bernings@amazon.com>
Copy link
Contributor

@ecpullen ecpullen left a comment

Choose a reason for hiding this comment

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

LGTM

@ginglis13 ginglis13 mentioned this pull request Jan 24, 2024
9 tasks
Copy link
Member

@webern webern left a comment

Choose a reason for hiding this comment

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

Do we have a plan to eliminate the Settings structs in models? This is a source of conditional compilation in the project due to the symlink created in build.rs. I'm wondering if it is on our radar to get rid of that?

@sam-berning
Copy link
Contributor Author

Do we have a plan to eliminate the Settings structs in models? This is a source of conditional compilation in the project due to the symlink created in build.rs. I'm wondering if it is on our radar to get rid of that?

Yeah, we can just get rid of the Settings structs once the API is set up to interact with settings extensions. See this section of the settings extension design doc for an explanation of how the OS will understand settings -- it'll basically only know that it's json but nothing about what the structure should be.

@sam-berning sam-berning merged commit 9ed9126 into bottlerocket-os:develop Jan 25, 2024
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OOTB: Port kernel settings model to settings extensions
4 participants