mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +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
 | 
			
		||||
	err = client.Post().Path(mapping.Resource).Namespace(namespace).Body(obj).Do().Error()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return &errs.ValidationError{errs.ValidationErrorTypeInvalid, name, err}
 | 
			
		||||
		e := errs.NewFieldInvalid(name, err)
 | 
			
		||||
		return &e
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return nil
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user