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
fbeb4de9
Commit
fbeb4de9
authored
Sep 20, 2017
by
Aleksandra Malinowska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pdbs for more kube-system pods in scale down test
parent
65437de1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
cluster_size_autoscaling.go
test/e2e/autoscaling/cluster_size_autoscaling.go
+5
-3
No files found.
test/e2e/autoscaling/cluster_size_autoscaling.go
View file @
fbeb4de9
...
@@ -1404,7 +1404,7 @@ func waitForScaleUpStatus(c clientset.Interface, expected string, timeout time.D
...
@@ -1404,7 +1404,7 @@ func waitForScaleUpStatus(c clientset.Interface, expected string, timeout time.D
}
}
// This is a temporary fix to allow CA to migrate some kube-system pods
// This is a temporary fix to allow CA to migrate some kube-system pods
// TODO: Remove this when the PDB is added for those components
// TODO: Remove this when the PDB is added for
some of
those components
func
addKubeSystemPdbs
(
f
*
framework
.
Framework
)
(
func
(),
error
)
{
func
addKubeSystemPdbs
(
f
*
framework
.
Framework
)
(
func
(),
error
)
{
By
(
"Create PodDisruptionBudgets for kube-system components, so they can be migrated if required"
)
By
(
"Create PodDisruptionBudgets for kube-system components, so they can be migrated if required"
)
...
@@ -1420,10 +1420,12 @@ func addKubeSystemPdbs(f *framework.Framework) (func(), error) {
...
@@ -1420,10 +1420,12 @@ func addKubeSystemPdbs(f *framework.Framework) (func(), error) {
min_available
int
min_available
int
}
}
pdbsToAdd
:=
[]
pdbInfo
{
pdbsToAdd
:=
[]
pdbInfo
{
{
label
:
"kube-dns-autoscaler"
,
min_available
:
1
},
{
label
:
"kube-dns"
,
min_available
:
1
},
{
label
:
"kube-dns"
,
min_available
:
1
},
{
label
:
"event-exporter"
,
min_available
:
0
},
{
label
:
"kube-dns-autoscaler"
,
min_available
:
0
},
{
label
:
"metrics-server"
,
min_available
:
0
},
{
label
:
"kubernetes-dashboard"
,
min_available
:
0
},
{
label
:
"kubernetes-dashboard"
,
min_available
:
0
},
{
label
:
"l7-default-backend"
,
min_available
:
0
},
{
label
:
"heapster"
,
min_available
:
0
},
}
}
for
_
,
pdbData
:=
range
pdbsToAdd
{
for
_
,
pdbData
:=
range
pdbsToAdd
{
By
(
fmt
.
Sprintf
(
"Create PodDisruptionBudget for %v"
,
pdbData
.
label
))
By
(
fmt
.
Sprintf
(
"Create PodDisruptionBudget for %v"
,
pdbData
.
label
))
...
...
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