mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-17 23:15:10 +00:00
small cleanup on pkg/config
This commit is contained in:
@@ -78,7 +78,8 @@ func CreateObject(client *client.RESTClient, mapping *meta.RESTMapping, obj runt
|
|||||||
// TODO: This should be using RESTHelper
|
// TODO: This should be using RESTHelper
|
||||||
err = client.Post().Path(mapping.Resource).Namespace(namespace).Body(obj).Do().Error()
|
err = client.Post().Path(mapping.Resource).Namespace(namespace).Body(obj).Do().Error()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &errs.ValidationError{errs.ValidationErrorTypeInvalid, name, err}
|
e := errs.NewFieldInvalid(name, err)
|
||||||
|
return &e
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user