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
a8f8e166
Commit
a8f8e166
authored
Nov 16, 2017
by
Krzysztof Jastrzebski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop executing Pod Priority and Preemption e2e tests on GKE.
parent
c7e7b928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
cluster_size_autoscaling.go
test/e2e/autoscaling/cluster_size_autoscaling.go
+10
-0
No files found.
test/e2e/autoscaling/cluster_size_autoscaling.go
View file @
a8f8e166
...
...
@@ -866,6 +866,8 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() {
})
It
(
"shouldn't scale up when expendable pod is created [Feature:ClusterSizeAutoscalingScaleUp]"
,
func
()
{
// TODO(krzysztof_jastrzebski): Start running this test on GKE when Pod Priority and Preemption is in beta.
framework
.
SkipUnlessProviderIs
(
"gce"
)
defer
createPriorityClasses
(
f
)()
// Create nodesCountAfterResize+1 pods allocating 0.7 allocatable on present nodes. One more node will have to be created.
cleanupFunc
:=
ReserveMemoryWithPriority
(
f
,
"memory-reservation"
,
nodeCount
+
1
,
int
(
float64
(
nodeCount
+
1
)
*
float64
(
0.7
)
*
float64
(
memAllocatableMb
)),
false
,
time
.
Second
,
expendablePriorityClassName
)
...
...
@@ -878,6 +880,8 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() {
})
It
(
"should scale up when non expendable pod is created [Feature:ClusterSizeAutoscalingScaleUp]"
,
func
()
{
// TODO(krzysztof_jastrzebski): Start running this test on GKE when Pod Priority and Preemption is in beta.
framework
.
SkipUnlessProviderIs
(
"gce"
)
defer
createPriorityClasses
(
f
)()
// Create nodesCountAfterResize+1 pods allocating 0.7 allocatable on present nodes. One more node will have to be created.
cleanupFunc
:=
ReserveMemoryWithPriority
(
f
,
"memory-reservation"
,
nodeCount
+
1
,
int
(
float64
(
nodeCount
+
1
)
*
float64
(
0.7
)
*
float64
(
memAllocatableMb
)),
true
,
scaleUpTimeout
,
highPriorityClassName
)
...
...
@@ -888,6 +892,8 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() {
})
It
(
"shouldn't scale up when expendable pod is preempted [Feature:ClusterSizeAutoscalingScaleUp]"
,
func
()
{
// TODO(krzysztof_jastrzebski): Start running this test on GKE when Pod Priority and Preemption is in beta.
framework
.
SkipUnlessProviderIs
(
"gce"
)
defer
createPriorityClasses
(
f
)()
// Create nodesCountAfterResize pods allocating 0.7 allocatable on present nodes - one pod per node.
cleanupFunc1
:=
ReserveMemoryWithPriority
(
f
,
"memory-reservation1"
,
nodeCount
,
int
(
float64
(
nodeCount
)
*
float64
(
0.7
)
*
float64
(
memAllocatableMb
)),
true
,
defaultTimeout
,
expendablePriorityClassName
)
...
...
@@ -900,6 +906,8 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() {
})
It
(
"should scale down when expendable pod is running [Feature:ClusterSizeAutoscalingScaleDown]"
,
func
()
{
// TODO(krzysztof_jastrzebski): Start running this test on GKE when Pod Priority and Preemption is in beta.
framework
.
SkipUnlessProviderIs
(
"gce"
)
defer
createPriorityClasses
(
f
)()
increasedSize
:=
manuallyIncreaseClusterSize
(
f
,
originalSizes
)
// Create increasedSize pods allocating 0.7 allocatable on present nodes - one pod per node.
...
...
@@ -911,6 +919,8 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() {
})
It
(
"shouldn't scale down when non expendable pod is running [Feature:ClusterSizeAutoscalingScaleDown]"
,
func
()
{
// TODO(krzysztof_jastrzebski): Start running this test on GKE when Pod Priority and Preemption is in beta.
framework
.
SkipUnlessProviderIs
(
"gce"
)
defer
createPriorityClasses
(
f
)()
increasedSize
:=
manuallyIncreaseClusterSize
(
f
,
originalSizes
)
// Create increasedSize pods allocating 0.7 allocatable on present nodes - one pod per node.
...
...
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