From 5828cf335f481ada66027d5f190779cc8361e35f Mon Sep 17 00:00:00 2001 From: Phillip Wittrock Date: Wed, 19 Jul 2017 21:39:43 -0700 Subject: [PATCH] fix check in 'build generated' for k8s.io/client-go/pkg/api/v1 to check for doc.go instead of just the directory --- cmd/apiserver-boot/boot/build/generate.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/apiserver-boot/boot/build/generate.go b/cmd/apiserver-boot/boot/build/generate.go index 7d04ddcad2..3cee3d950a 100644 --- a/cmd/apiserver-boot/boot/build/generate.go +++ b/cmd/apiserver-boot/boot/build/generate.go @@ -168,7 +168,9 @@ func RunGenerate(cmd *cobra.Command, args []string) { // Add any vendored apis from core apis = append(apis, getVendorApis(filepath.Join("k8s.io", "api"))...) apis = append(apis, getVendorApis(filepath.Join("k8s.io", "client-go", "pkg", "apis"))...) - if _, err := os.Stat(filepath.Join("vendor", "k8s.io", "client-go", "pkg", "api", "v1")); err == nil { + + // Special case 'k8s.io/client-go/pkg/api/v1' because it does not have a group + if _, err := os.Stat(filepath.Join("vendor", "k8s.io", "client-go", "pkg", "api", "v1", "doc.go")); err == nil { apis = append(apis, filepath.Join("k8s.io", "client-go", "pkg", "api", "v1")) }