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
6b3a3452
Commit
6b3a3452
authored
Feb 26, 2018
by
jianglingxia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UT test in qos if pod has one container
parent
15b7d466
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
qos_test.go
pkg/apis/core/v1/helper/qos/qos_test.go
+6
-0
No files found.
pkg/apis/core/v1/helper/qos/qos_test.go
View file @
6b3a3452
...
...
@@ -66,6 +66,12 @@ func TestGetPodQOS(t *testing.T) {
expected
:
v1
.
PodQOSBestEffort
,
},
{
pod
:
newPod
(
"best-effort"
,
[]
v1
.
Container
{
newContainer
(
"best-effort"
,
getResourceList
(
""
,
""
),
getResourceList
(
""
,
""
)),
}),
expected
:
v1
.
PodQOSBestEffort
,
},
{
pod
:
newPod
(
"best-effort-best-effort-with-gpu"
,
[]
v1
.
Container
{
newContainer
(
"best-effort"
,
getResourceList
(
""
,
""
),
addResource
(
"nvidia-gpu"
,
"2"
,
getResourceList
(
""
,
""
))),
newContainer
(
"best-effort"
,
getResourceList
(
""
,
""
),
getResourceList
(
""
,
""
)),
...
...
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