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
1e5afd72
Commit
1e5afd72
authored
Jun 21, 2017
by
Bobby (Babak) Salamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove e2e test for least requested prioirty function
parent
d86c2671
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
priorities.go
test/e2e/scheduling/priorities.go
+0
-23
No files found.
test/e2e/scheduling/priorities.go
View file @
1e5afd72
...
@@ -84,29 +84,6 @@ var _ = framework.KubeDescribe("SchedulerPriorities [Serial]", func() {
...
@@ -84,29 +84,6 @@ var _ = framework.KubeDescribe("SchedulerPriorities [Serial]", func() {
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
})
})
It
(
"Pods should be scheduled to low resource use rate node"
,
func
()
{
//Make sure all the schedulable nodes are balanced (have the same cpu/mem usage ratio)
By
(
"Create pods on each node except the last one to raise cpu and memory usage to the same high level"
)
var
expectedNodeName
string
expectedNodeName
=
nodeList
.
Items
[
len
(
nodeList
.
Items
)
-
1
]
.
Name
nodes
:=
nodeList
.
Items
[
:
len
(
nodeList
.
Items
)
-
1
]
// make the nodes except last have cpu,mem usage to 90%
createBalancedPodForNodes
(
f
,
cs
,
ns
,
nodes
,
podRequestedResource
,
0.9
)
By
(
"Create a pod,pod should schedule to the least requested nodes"
)
createPausePod
(
f
,
pausePodConfig
{
Name
:
"priority-least-requested"
,
Labels
:
map
[
string
]
string
{
"name"
:
"priority-least-requested"
},
Resources
:
podRequestedResource
,
})
By
(
"Wait for all the pods are running"
)
err
:=
f
.
WaitForPodRunning
(
"priority-least-requested"
)
framework
.
ExpectNoError
(
err
)
By
(
"Verify the pod is scheduled to the expected node"
)
testPod
,
err
:=
cs
.
CoreV1
()
.
Pods
(
ns
)
.
Get
(
"priority-least-requested"
,
metav1
.
GetOptions
{})
framework
.
ExpectNoError
(
err
)
Expect
(
testPod
.
Spec
.
NodeName
)
.
Should
(
Equal
(
expectedNodeName
))
})
It
(
"Pods created by ReplicationController should spread to different node"
,
func
()
{
It
(
"Pods created by ReplicationController should spread to different node"
,
func
()
{
By
(
"Create a pod for each node to make the nodes have almost same cpu/mem usage ratio"
)
By
(
"Create a pod for each node to make the nodes have almost same cpu/mem usage ratio"
)
...
...
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