-
Notifications
You must be signed in to change notification settings - Fork 7
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
Make cmapisrv-mock addresses configurable #84
Make cmapisrv-mock addresses configurable #84
Conversation
e4850e6
to
11bb066
Compare
Rebased onto main to fix conflict. |
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.
Sweet! Would it make sense to make the CIDR blocks configurable at some point too?
That's definitely a possibility. I haven't done that at the moment to avoid adding more parameters, considering that there's not much value in configuring the size of those CIDRs with the current implementation. Indeed, the IP of an endpoint is picked from the entire PodCIDR range, and not from the specific PodCIDR of the node. However, that's something we may want to consider in the future if this mechanism turns out to lead to unexpected behavior. |
So that it randomly picks either an IPv4 or an IPv6 address, rather than IPv6 only. Signed-off-by: Marco Iorio <[email protected]>
In order to shorten the signature of the functions initializing the mockers for the different resources, and simplify adding new parameters. Signed-off-by: Marco Iorio <[email protected]>
This will allow a subsequent commit to make the CIDRs configurable. Signed-off-by: Marco Iorio <[email protected]>
To allow configuring different ranges in case they overlap with other infrastructural addresses, and prevent breaking connectivity. Signed-off-by: Marco Iorio <[email protected]>
11bb066
to
89393c1
Compare
Rebased onto main to run the lint and build pipelines before merging. |
To allow configuring different ranges in case they overlap with other infrastructural addresses, and prevent breaking connectivity. Additionally, let's fix the endpoint mocking logic that incorrectly always picked IPv6 addresses when IPv6 was enabled.