mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Update references from Path() to the appropriate segment use
This commit is contained in:
@@ -80,7 +80,7 @@ func CreateObject(client RESTClientPoster, mapping *meta.RESTMapping, obj runtim
|
||||
}
|
||||
|
||||
// TODO: This should be using RESTHelper
|
||||
err = client.Post().Path(mapping.Resource).Namespace(namespace).Body(obj).Do().Error()
|
||||
err = client.Post().Resource(mapping.Resource).Namespace(namespace).Body(obj).Do().Error()
|
||||
if err != nil {
|
||||
return errs.NewFieldInvalid(name, obj, err.Error())
|
||||
}
|
||||
|
Reference in New Issue
Block a user