code: func (c *deployments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Deployment, err error) {
  	result = &v1beta1.Deployment{}
  	err = c.client.Patch(pt).
  		Namespace(c.ns).
  		Resource("deployments").
  		SubResource(subresources...).
  		Name(name).
  		Body(data).
  		Do().
  		Into(result)
  	return
  }
docs: // Patch applies the patch and returns the patched deployment.