mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
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 ```
This commit is contained in:
commit
b43f18d43b
@ -161,7 +161,8 @@ func ResourceAliases(rs []string) []string {
|
||||
var plural string
|
||||
switch {
|
||||
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"):
|
||||
plural = r[0:len(r)-1] + "ies"
|
||||
case strings.HasSuffix(r, "s"):
|
||||
|
Loading…
Reference in New Issue
Block a user