Skip to content

Commit

Permalink
Add IngressClass to manifests to be (un)installed
Browse files Browse the repository at this point in the history
Signed-off-by: StephanECD <87023735+stephanECD@users.noreply.github.com>
  • Loading branch information
stephanECD authored and Stephan Eckweiler committed Feb 4, 2022
1 parent 35f6196 commit 0361dc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkg/releaseutil/kind_sorter.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ var InstallOrder KindSortOrder = []string{
"StatefulSet",
"Job",
"CronJob",
"IngressClass",
"Ingress",
"APIService",
}
Expand All @@ -71,6 +72,7 @@ var InstallOrder KindSortOrder = []string{
var UninstallOrder KindSortOrder = []string{
"APIService",
"Ingress",
"IngressClass",
"Service",
"CronJob",
"Job",
Expand Down
8 changes: 6 additions & 2 deletions pkg/releaseutil/kind_sorter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ import (

func TestKindSorter(t *testing.T) {
manifests := []Manifest{
{
Name: "U",
Head: &SimpleHead{Kind: "IngressClass"},
},
{
Name: "E",
Head: &SimpleHead{Kind: "SecretList"},
Expand Down Expand Up @@ -172,8 +176,8 @@ func TestKindSorter(t *testing.T) {
order KindSortOrder
expected string
}{
{"install", InstallOrder, "aAbcC3deEf1gh2iIjJkKlLmnopqrxstuvw!"},
{"uninstall", UninstallOrder, "wvmutsxrqponLlKkJjIi2hg1fEed3CcbAa!"},
{"install", InstallOrder, "aAbcC3deEf1gh2iIjJkKlLmnopqrxstuUvw!"},
{"uninstall", UninstallOrder, "wvUmutsxrqponLlKkJjIi2hg1fEed3CcbAa!"},
} {
var buf bytes.Buffer
t.Run(test.description, func(t *testing.T) {
Expand Down

0 comments on commit 0361dc8

Please sign in to comment.