mirror of
https://github.com/helm/helm.git
synced 2026-08-08 17:11:18 +00:00
Added HorizontalPodAutoscaler to sort order.
Signed-off-by: Constantin Bugneac <constantin.bugneac@worldfirst.com>
This commit is contained in:
committed by
Constantin Bugneac
parent
84d0f231e8
commit
512f67de14
@@ -45,6 +45,7 @@ var InstallOrder KindSortOrder = []string{
|
||||
"ReplicationController",
|
||||
"ReplicaSet",
|
||||
"Deployment",
|
||||
"HorizontalPodAutoscaler",
|
||||
"StatefulSet",
|
||||
"Job",
|
||||
"CronJob",
|
||||
@@ -62,6 +63,7 @@ var UninstallOrder KindSortOrder = []string{
|
||||
"CronJob",
|
||||
"Job",
|
||||
"StatefulSet",
|
||||
"HorizontalPodAutoscaler",
|
||||
"Deployment",
|
||||
"ReplicaSet",
|
||||
"ReplicationController",
|
||||
|
||||
@@ -127,6 +127,10 @@ func TestKindSorter(t *testing.T) {
|
||||
Name: "w",
|
||||
Head: &SimpleHead{Kind: "APIService"},
|
||||
},
|
||||
{
|
||||
Name: "x",
|
||||
Head: &SimpleHead{Kind: "HorizontalPodAutoscaler"},
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range []struct {
|
||||
@@ -134,8 +138,8 @@ func TestKindSorter(t *testing.T) {
|
||||
order KindSortOrder
|
||||
expected string
|
||||
}{
|
||||
{"install", InstallOrder, "abcde1fgh2ijklmnopqrstuvw!"},
|
||||
{"uninstall", UninstallOrder, "wvmutsrqponlkji2hgf1edcba!"},
|
||||
{"install", InstallOrder, "abcde1fgh2ijklmnopqrxstuvw!"},
|
||||
{"uninstall", UninstallOrder, "wvmutsxrqponlkji2hgf1edcba!"},
|
||||
} {
|
||||
var buf bytes.Buffer
|
||||
t.Run(test.description, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user