From 189706e0abdaab3a41eb6ee7523e133d6babd9b0 Mon Sep 17 00:00:00 2001 From: Mircea-Pavel Anton Date: Thu, 10 Oct 2024 18:54:17 +0000 Subject: [PATCH] fix: change map type from `map[interface{}]interface{}` to `map[string]interface{}` --- pkg/substitute/pathsubst.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/substitute/pathsubst.go b/pkg/substitute/pathsubst.go index 5ba32a64..3ffbfdb1 100644 --- a/pkg/substitute/pathsubst.go +++ b/pkg/substitute/pathsubst.go @@ -41,11 +41,10 @@ func SubstituteRelativePaths(configFilePath string, yamlContent []byte) ([]byte, func processNode(node interface{}, path []string, yamlDir string) interface{} { switch n := node.(type) { - case map[interface{}]interface{}: - newMap := make(map[interface{}]interface{}) + case map[string]interface{}: + newMap := make(map[string]interface{}) for k, v := range n { - keyStr := fmt.Sprintf("%v", k) - newPath := append(path, keyStr) + newPath := append(path, k) newMap[k] = processNode(v, newPath, yamlDir) } return newMap