Unverified Commit b43f18d4 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #61204 from janetkuo/ep-doc

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Document that endpoints is only plural in resource aliases **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Ref #61200 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 895f599a b5b76d81
...@@ -161,7 +161,8 @@ func ResourceAliases(rs []string) []string { ...@@ -161,7 +161,8 @@ func ResourceAliases(rs []string) []string {
var plural string var plural string
switch { switch {
case r == "endpoints": case r == "endpoints":
plural = r // exception. "endpoint" does not exist. Why? // Endpoints type itself is plural, unlike every other resource.
plural = r
case strings.HasSuffix(r, "y"): case strings.HasSuffix(r, "y"):
plural = r[0:len(r)-1] + "ies" plural = r[0:len(r)-1] + "ies"
case strings.HasSuffix(r, "s"): case strings.HasSuffix(r, "s"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment