-
Notifications
You must be signed in to change notification settings - Fork 5k
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' flag for docker/podman driver #13730
Conversation
Can one of the admins verify this patch? |
// CreateNetwork creates a network returns gateway and error, minikube creates one network per cluster | ||
func CreateNetwork(ociBin string, networkName string) (net.IP, error) { | ||
func CreateNetwork(ociBin string, networkName string, subnet string) (net.IP, error) { |
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.
Function parameters can omit repeated type:
func CreateNetwork(ociBin, networkName, subnet string) { ...
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.
Fixed.
// CreateNetwork creates a network returns gateway and error, minikube creates one network per cluster | ||
func CreateNetwork(ociBin string, networkName string) (net.IP, error) { | ||
func CreateNetwork(ociBin string, networkName string, subnet string) (net.IP, error) { |
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.
Function parameters can omit repeated type:
func CreateNetwork(ociBin, networkName, subnet string) { ...
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.
Fixed.
@@ -107,3 +128,15 @@ func verifyNetworkExists(ctx context.Context, t *testing.T, networkName string) | |||
t.Fatalf("%s network is not listed by [%v]: %v", networkName, c.Args, output) | |||
} | |||
} | |||
|
|||
func verifySubnet(ctx context.Context, t *testing.T, network string, subnet string) { |
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.
Omit repeated param (see comment above for more detail).
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.
Fixed.
@@ -107,3 +128,15 @@ func verifyNetworkExists(ctx context.Context, t *testing.T, networkName string) | |||
t.Fatalf("%s network is not listed by [%v]: %v", networkName, c.Args, output) | |||
} | |||
} | |||
|
|||
func verifySubnet(ctx context.Context, t *testing.T, network string, subnet string) { |
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.
Omit repeated param (see comment above for more detail).
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.
Fixed.
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 53.7s 51.3s 51.5s 51.0s 52.7s Times for minikube ingress: 28.5s 26.0s 27.0s 26.5s 30.6s docker driver with docker runtime
Times for minikube start: 26.3s 26.4s 26.3s 25.6s 25.1s Times for minikube ingress: 22.9s 22.9s 24.4s 22.9s 23.0s docker driver with containerd runtime
Times for minikube start: 34.8s 40.9s 41.2s 41.3s 46.1s Times for minikube ingress: 17.9s 22.4s 23.4s 22.4s 28.0s |
These are the flake rates of all failed tests.
Too many tests failed - See test logs for more details. To see the flake rates of all tests by environment, click here. |
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.
Thank you for your contribution!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: presztak, sharifelgamal The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR adds support to define subnet address of the minikube docker/podman driver cluster.
Closes #12315
Example:
minikube start --subnet 192.168.60.0/24
Result:
docker network inspect minikube