|
|
|
@ -156,9 +156,13 @@ func sortHooksByKind(hooks []*release.Hook, ordering KindSortOrder) []*release.H
|
|
|
|
return hooks
|
|
|
|
return hooks
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func lessByKind(kindA string, kindB string, ordering map[string]int) bool {
|
|
|
|
func lessByKind(
|
|
|
|
first, aok := ordering[kindA]
|
|
|
|
kindA string,
|
|
|
|
second, bok := ordering[kindB]
|
|
|
|
kindB string,
|
|
|
|
|
|
|
|
orderMap map[string]int,
|
|
|
|
|
|
|
|
) bool {
|
|
|
|
|
|
|
|
first, aok := orderMap[kindA]
|
|
|
|
|
|
|
|
second, bok := orderMap[kindB]
|
|
|
|
|
|
|
|
|
|
|
|
if !aok && !bok {
|
|
|
|
if !aok && !bok {
|
|
|
|
// if both are unknown then sort alphabetically by kind, keep original order if same kind
|
|
|
|
// if both are unknown then sort alphabetically by kind, keep original order if same kind
|
|
|
|
|