Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
d953c687
Unverified
Commit
d953c687
authored
Jul 19, 2019
by
Martin Hickey
Committed by
GitHub
Jul 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6039 from Constantin07/add_hpa_to_sorting_order
Added HPA to sort order.
parents
88bb48bc
535df90c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
kind_sorter.go
pkg/tiller/kind_sorter.go
+2
-0
kind_sorter_test.go
pkg/tiller/kind_sorter_test.go
+6
-2
No files found.
pkg/tiller/kind_sorter.go
View file @
d953c687
...
...
@@ -53,6 +53,7 @@ var InstallOrder SortOrder = []string{
"ReplicationController"
,
"ReplicaSet"
,
"Deployment"
,
"HorizontalPodAutoscaler"
,
"StatefulSet"
,
"Job"
,
"CronJob"
,
...
...
@@ -70,6 +71,7 @@ var UninstallOrder SortOrder = []string{
"CronJob"
,
"Job"
,
"StatefulSet"
,
"HorizontalPodAutoscaler"
,
"Deployment"
,
"ReplicaSet"
,
"ReplicationController"
,
...
...
pkg/tiller/kind_sorter_test.go
View file @
d953c687
...
...
@@ -153,6 +153,10 @@ func TestKindSorter(t *testing.T) {
Name
:
"z"
,
Head
:
&
util
.
SimpleHead
{
Kind
:
"PodDisruptionBudget"
},
},
{
Name
:
"x"
,
Head
:
&
util
.
SimpleHead
{
Kind
:
"HorizontalPodAutoscaler"
},
},
}
for
_
,
test
:=
range
[]
struct
{
...
...
@@ -160,8 +164,8 @@ func TestKindSorter(t *testing.T) {
order
SortOrder
expected
string
}{
{
"install"
,
InstallOrder
,
"abc3zde1fgh2iIjJkKlLmnopqrstuvw!"
},
{
"uninstall"
,
UninstallOrder
,
"wvmutsrqponLlKkJjIi2hgf1edz3cba!"
},
{
"install"
,
InstallOrder
,
"abc3zde1fgh2iIjJkKlLmnopqr
x
stuvw!"
},
{
"uninstall"
,
UninstallOrder
,
"wvmuts
x
rqponLlKkJjIi2hgf1edz3cba!"
},
}
{
var
buf
bytes
.
Buffer
t
.
Run
(
test
.
description
,
func
(
t
*
testing
.
T
)
{
...
...
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