Skip to content

Conversation

@ytsssun
Copy link
Contributor

@ytsssun ytsssun commented Jan 7, 2026

Issue #, if available:
bottlerocket-os/bottlerocket#4725

Description of changes:
Fix serialization of fail-cgroup-v1 setting added in #108.

The field was missing skip_serializing_if = "Option::is_none" which caused it to serialize as null instead of being omitted when not set. This broke the test_default_kubernetes_settings_empty test in core-kit that rely on default settings serializing to an empty object.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ytsssun ytsssun force-pushed the fail-cgroup-v1-setting/settings-sdk branch 4 times, most recently from af872d2 to f2aa7a7 Compare January 7, 2026 21:18
Add skip_serializing_if to prevent null serialization when None.

Signed-off-by: Yutong Sun <[email protected]>
@ytsssun ytsssun force-pushed the fail-cgroup-v1-setting/settings-sdk branch from f2aa7a7 to f0d63ea Compare January 7, 2026 21:22
@ytsssun
Copy link
Contributor Author

ytsssun commented Jan 7, 2026

Closing this PRas it was created based off a wrong branch.

@ytsssun ytsssun closed this Jan 7, 2026
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.

1 participant