1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-30 03:15:05 +00:00

753 fixing tests

This commit is contained in:
shravan 2020-04-04 22:50:05 +05:30
parent d43456b681
commit 23d2a215dc

View file

@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"reflect"
"sort"
"strconv"
"strings"
@ -415,5 +416,9 @@ func replacePodWithPodControllers(kinds []string, controllers []string) []string
output = append(output, kind)
}
sort.Slice(output, func(i, j int) bool {
return output[i] < output[j]
})
return output
}