Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0010e021
Commit
0010e021
authored
Feb 05, 2015
by
Jerzy Szczepkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed formatting.
parent
ad4c2ee6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
constraint.go
pkg/constraint/constraint.go
+3
-3
constraint_test.go
pkg/constraint/constraint_test.go
+2
-2
No files found.
pkg/constraint/constraint.go
View file @
0010e021
...
@@ -25,8 +25,8 @@ import (
...
@@ -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
}
}
pkg/constraint/constraint_test.go
View file @
0010e021
...
@@ -41,8 +41,8 @@ func podWithContainers(containers ...api.Container) api.BoundPod {
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment