mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fixed formatting.
This commit is contained in:
parent
ad4c2ee630
commit
0010e02148
@ -25,8 +25,8 @@ import (
|
|||||||
// Allowed returns true if pods is a collection of bound pods
|
// Allowed returns true if pods is a collection of bound pods
|
||||||
// which can run without conflict on a single minion.
|
// which can run without conflict on a single minion.
|
||||||
func Allowed(pods []api.BoundPod) error {
|
func Allowed(pods []api.BoundPod) error {
|
||||||
if (PortsConflict(pods)) {
|
if PortsConflict(pods) {
|
||||||
return fmt.Errorf("conflicting ports");
|
return fmt.Errorf("conflicting ports")
|
||||||
}
|
}
|
||||||
return nil;
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -41,8 +41,8 @@ func podWithContainers(containers ...api.Container) api.BoundPod {
|
|||||||
|
|
||||||
func TestAllowed(t *testing.T) {
|
func TestAllowed(t *testing.T) {
|
||||||
table := []struct {
|
table := []struct {
|
||||||
err error
|
err error
|
||||||
pods []api.BoundPod
|
pods []api.BoundPod
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
err: nil,
|
err: nil,
|
||||||
|
Loading…
Reference in New Issue
Block a user