From 4b5c25ad5d3eef8aa4c8e3bee884a512d5673396 Mon Sep 17 00:00:00 2001 From: Erik Svensson Date: Thu, 23 Nov 2023 12:36:36 +0100 Subject: [PATCH] toLower on the kind string for less ugly file names --- helpers/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/helpers.go b/helpers/helpers.go index c9959d5..b060db4 100644 --- a/helpers/helpers.go +++ b/helpers/helpers.go @@ -53,7 +53,7 @@ func GetYamlKindName(y string) (string, string, error) { return "", "", fmt.Errorf("could not find 'metadata.name' in yaml") } //fmt.Printf("Got kind: %v and name: %v", r.Kind, r.Metadata.Name) - return r.Kind, r.Metadata.Name, nil + return strings.ToLower(r.Kind), r.Metadata.Name, nil } func GetKindAndNameFromYaml(y string) (string, string) {