-
-
Notifications
You must be signed in to change notification settings - Fork 538
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
unify Config generation, loading and updating #1586
Conversation
Note I was unable to run tests locally so didn't touch those hoping nothing will break
|
this commit seems to work on a live system dcf9b84 beforedon't mind that
after
|
7b1c7ff
to
1b7da57
Compare
moved service name flag out into #1691 |
FYI: this seems like a good standard for configurations https://uapi-group.org/specifications/specs/configuration_files_specification/ |
…pdate() as a bonus it ensures returned Config object doesn't have any configuration values missing
# Conflicts: # client/internal/config.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nazarewk for the PR. I've resolved some merge conflict and fixed a small issue with nat external IPs
Describe your changes
There are 2 primary changes:
Config.apply(ConfigInput)
:Config{}
and emptyInputConfig{}
filling in missing parts automaticallycreateNewConfig()
andupdate()
InterfaceBlacklist
to theInputConfig
Basically when I tried to start the
netbird service run
with justWgIface
andWgPort
present inconfig.json
it crashed, so I got to fixing stuff :)Issue ticket number and link
netbird up
#1562 by making incomplete configs acceptable (currently it segfaults on missing pointers/values)Checklist