From 9dbc8b1fb9e10876965c40927715808db9f11e6b Mon Sep 17 00:00:00 2001 From: longquan0104 Date: Wed, 10 May 2023 14:32:47 +0700 Subject: [PATCH] util: Sort not considered on key type Signed-off-by: longquan0104 --- internal/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/util.go b/internal/util/util.go index 4da896020..a7da4ae7e 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -54,7 +54,7 @@ func OrderedValuesChecksum(values chartutil.Values) string { // of the order of the keys in the values file. func SortMapSlice(ms goyaml.MapSlice) { sort.Slice(ms, func(i, j int) bool { - return fmt.Sprintf("%T.%v", ms[i].Key, ms[i].Key) < fmt.Sprintf("%T.%v", ms[j].Key, ms[j].Key) + return fmt.Sprint(ms[i].Key) < fmt.Sprint(ms[j].Key) }) for _, item := range ms { if nestedMS, ok := item.Value.(goyaml.MapSlice); ok {