Skip to content

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

Merged
pslldq merged 3 commits intomainfrom
cobra
Nov 18, 2024
Merged

Dependency updates, configurable commands and test for range generation#1
pslldq merged 3 commits intomainfrom
cobra

Conversation

@pslldq
Copy link
Copy Markdown

@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
@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