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

Fix: config validation before starting the service avoids panic #141

Merged
merged 1 commit into from
May 2, 2022

Conversation

guacamole
Copy link
Member

Signed-off-by: guacamole [email protected]

@guacamole guacamole added bug Something isn't working enhancement New feature or request labels May 1, 2022
@guacamole guacamole requested a review from jay-dee7 May 1, 2022 11:17
@guacamole guacamole self-assigned this May 1, 2022
@guacamole guacamole force-pushed the validate-config branch 5 times, most recently from 18f3f18 to 665d5c6 Compare May 1, 2022 12:09
config/config.go Outdated Show resolved Hide resolved
}
return translatedErr
}
return nil
Copy link
Member

Choose a reason for hiding this comment

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

@guacamole here we should return as error as is

Copy link
Member

Choose a reason for hiding this comment

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

no this is correct

Copy link
Member

@jay-dee7 jay-dee7 left a comment

Choose a reason for hiding this comment

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

@guacamole Just few changes and we're good

Copy link
Member

@jay-dee7 jay-dee7 left a comment

Choose a reason for hiding this comment

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

LGTM 🥇 🥇 🥇

@guacamole guacamole merged commit a1dcf82 into master May 2, 2022
@guacamole guacamole deleted the validate-config branch May 2, 2022 05:17
@guacamole guacamole linked an issue May 2, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

OpenRegistry binary panics if config.yaml is missing few fields
2 participants