Skip to content

Commit

Permalink
Merge pull request kubeedge#5894 from wbc6080/fix-crdname-metaserver
Browse files Browse the repository at this point in the history
Fix errors due to singular and plural conversion in metaserver
  • Loading branch information
kubeedge-bot authored Oct 23, 2024
2 parents 91bb084 + 64c28d4 commit fdc990f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metaserver/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fdc990f

Please sign in to comment.