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

models: add missing serde attributes to registrysettings.mirrors field #1910

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

etungsten
Copy link
Contributor

Issue number:
Fixes #1909

Description of changes:

Author: Erikson Tung <etung@amazon.com>
Date:   Fri Jan 14 17:01:00 2022 -0800

    models: add missing serde attributes to `registrysettings.mirrors` field
    
    Because we're using a custom deserializer for `mirrors`, we need to also
    add the serde attribute for populating the field with a default value if
    mirrors does not exist in the registry settings table

Testing done:
Launching an instance with an empty container-registry table:

[settings.container-registry]

And the instance comes up fine. The datastore also doesn't have any thing created for the empty table 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.

Because we're using a custom deserializer for `mirrors`, we need to also
add the serde attribute for populating the field with a default value if
mirrors does not exist in the registry settings table
Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

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

🫕

@etungsten etungsten merged commit 8b840a1 into bottlerocket-os:develop Jan 18, 2022
@etungsten etungsten deleted the empty-mirrors branch January 18, 2022 21:15
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.

Passing an empty TOML table for container-registry causes boot failure
4 participants