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
Add --subnet
validation
#15517
Comments
Hi there! Can I take a shot at this? |
/assign |
Hi @shubhbapna, for sure! |
@spowelljr I have been going through the codebase and it seems like we might already have the functions that can perform these checks. I am thinking of exposing two functions from the network package - isSubnetPrivate and inspect ( What do you think? If I am going in a completely different direction pls let me know |
@shubhbapna Golang's net package has an I don't think that importing the
And if |
Gotcha, thank you! For deleting |
You can if you'd like, even including it in this PR I'm assuming the PR will be fairly small, but completely up to you |
I think I found an issue in It seems like What do you think @spowelljr ? |
Feel free to make two PRs then, you can create an issue for what you discovered and assign yourself |
If the IP/CIDR passed in is not a private IP it should fail during validation as the way the incrementing and retries work it's impossible to start with a public IP and for it to increment into a private IP. Also, we should require that if a CIDR is passed in that the mask is no greater than
/30
. A mask of/30
gives a range of 4 IPs, anything larger reduces that number and is guaranteed to fail as minikube requires at least 4 IPs.The text was updated successfully, but these errors were encountered: