make file name more readable when no group

This commit is contained in:
Donny Xia
2020-10-07 12:44:45 -07:00
parent 72e1a27177
commit b7265440f8
3 changed files with 34 additions and 9 deletions

View File

@@ -191,7 +191,7 @@ func writeIndividualFiles(
}
func fileName(res *resource.Resource) string {
return strings.ToLower(res.GetGvk().String()) +
return strings.ToLower(res.GetGvk().StringWoEmptyField()) +
"_" + strings.ToLower(res.GetName()) + ".yaml"
}