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

Use bottlerocket-settings-sdk for settings models needed in core-kit #7

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

cbgbt
Copy link
Contributor

@cbgbt cbgbt commented Jun 19, 2024

Description of changes:
Some software in Bottlerocket uses modeled-types shared by Bottlerocket's settings models. These types now have a home in https://github.com/bottlerocket-os/bottlerocket-settings-sdk. This change moves core-kit to refer to the settings SDK for shared types.

Testing done:

  • Core kit builds

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.

@@ -1571,7 +1573,7 @@ impl Runtime {
fn get_resource_limits(
&self,
rlimit_type: &OciDefaultsResourceLimitType,
values: &OciDefaultsResourceLimit,
values: &OciDefaultsResourceLimitV1,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's ok to use the setting extension's model for now, but long term these helpers should live with the setting extension right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. The settings extension API provides a mechanism for exposing these helpers, so the helper code would move to the owning extension.

@cbgbt cbgbt marked this pull request as ready for review June 19, 2024 19:02
@bcressey bcressey merged commit a2fdb43 into bottlerocket-os:develop Jun 19, 2024
2 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.

3 participants