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

Dependency updates, configurable commands and test for range generation #1

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

pslldq
Copy link

@pslldq pslldq commented Nov 16, 2024

Updated all dependencies. This also required changing the minimum Go version to 1.22 due to etcd.

The concentratorconfig and etcdconfigweb commands now supports command line flags to change some hardcoded settings like file paths.

Also added a test for the IP range and address generation to prevent regressions on code refactorings (related to freifunkMUC/etcd-tools#1 )

Sven Püschel added 3 commits November 16, 2024 14:26
Upgrade minimum Go version to 1.22 to allow upgrading to the latest etcd
version, which requires 1.22 . Also update all other direct
dependencies.
Add cobra argument parsing to concentratorconfig and etcdconfigweb to
show the available configuration options to the user. Also allow
changing some hardcoded values/paths using command line arguments.
Test the IP address and subnet generation to avoid breaking the existing
generation when updating or refactoring it. Given that the subnet
generation uses some binary operations, it is hard to spot potential
errors.

For this usecase the function generating the subnet was externalized to
be accessible from the test code instead of an inlined function.
@pslldq pslldq merged commit 018c0d4 into main Nov 18, 2024
2 checks passed
@pslldq pslldq deleted the cobra branch November 18, 2024 18:37
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