diff --git a/pkg/metaserver/util/util.go b/pkg/metaserver/util/util.go index f549faf0d93..bdd36cc0ea7 100644 --- a/pkg/metaserver/util/util.go +++ b/pkg/metaserver/util/util.go @@ -66,7 +66,7 @@ func UnsafeResourceToKind(r string) string { switch { case strings.HasSuffix(k, "ies"): return strings.TrimSuffix(k, "ies") + "y" - case strings.HasSuffix(k, "es"): + case strings.HasSuffix(k, "ses"): return strings.TrimSuffix(k, "es") case strings.HasSuffix(k, "s"): return strings.TrimSuffix(k, "s")