From 87897aa6169f426e834d6842a46dab8303a68a93 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Fri, 12 Jan 2018 12:20:57 -0700 Subject: [PATCH] Update vendor --- vendor.conf | 2 +- vendor/github.com/rancher/norman/name/name.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/vendor.conf b/vendor.conf index ac7ff1cd..c3061904 100644 --- a/vendor.conf +++ b/vendor.conf @@ -3,5 +3,5 @@ github.com/rancher/types k8s.io/kubernetes v1.8.3 transitive=true,staging=true bitbucket.org/ww/goautoneg a547fc61f48d567d5b4ec6f8aee5573d8efce11d https://github.com/rancher/goautoneg.git -github.com/rancher/norman 432219d44739826485fb6c9178e5db08a162a9c3 +github.com/rancher/norman faf2f35bfeb8bd622f5d61bae4d1e8ecee46e827 golang.org/x/sync fd80eb99c8f653c847d294a001bdf2a3a6f768f5 diff --git a/vendor/github.com/rancher/norman/name/name.go b/vendor/github.com/rancher/norman/name/name.go index 045d7f60..8a5cfcf9 100644 --- a/vendor/github.com/rancher/norman/name/name.go +++ b/vendor/github.com/rancher/norman/name/name.go @@ -7,6 +7,10 @@ func GuessPluralName(name string) string { return name } + if strings.EqualFold(name, "Endpoints") { + return name + } + if suffix(name, "s") || suffix(name, "ch") || suffix(name, "x") { return name + "es" }