From 254189a5f2c85667bf8cf09eb336ccdb44055a83 Mon Sep 17 00:00:00 2001
From: lixiaobing10051267
Date: Wed, 10 Aug 2016 21:20:50 +0800
Subject: [PATCH] check validation with no apps client in kubectl util factory
---
pkg/kubectl/cmd/util/factory.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/kubectl/cmd/util/factory.go b/pkg/kubectl/cmd/util/factory.go
index 08000d846ca..04d45eeffdf 100644
--- a/pkg/kubectl/cmd/util/factory.go
+++ b/pkg/kubectl/cmd/util/factory.go
@@ -1080,7 +1080,7 @@ func (c *clientSwaggerSchema) ValidateBytes(data []byte) error {
}
if gvk.Group == apps.GroupName {
if c.c.AppsClient == nil {
- return errors.New("unable to validate: no autoscaling client")
+ return errors.New("unable to validate: no apps client")
}
return getSchemaAndValidate(c.c.AppsClient.RESTClient, data, "apis/", gvk.GroupVersion().String(), c.cacheDir, c)
}