err=errors.NewBadRequest(fmt.Sprintf("the API version in the data (%s) does not match the expected API version (%v)",gvk.GroupVersion().String(),gv.String()))
patchDiffErr:=fmt.Errorf("there is a meaningful conflict (firstResourceVersion: %q, currentResourceVersion: %q):\n diff1=%v\n, diff2=%v\n",originalResourceVersion,currentResourceVersion,string(diff1),string(diff2))
glog.V(4).Infof("patchResource failed for resource %s, because there is a meaningful conflict(firstResourceVersion: %q, currentResourceVersion: %q):\n diff1=%v\n, diff2=%v\n",name,originalResourceVersion,currentResourceVersion,string(diff1),string(diff2))
// Return the last conflict error we got if we have one
err=errors.NewBadRequest(fmt.Sprintf("the API version in the data (%s) does not match the expected API version (%v)",gvk.GroupVersion().String(),gv.String()))
patchDiffErr:=fmt.Errorf("there is a meaningful conflict (firstResourceVersion: %q, currentResourceVersion: %q):\n diff1=%v\n, diff2=%v\n",originalResourceVersion,currentResourceVersion,string(diff1),string(diff2))
glog.V(4).Infof("patchResource failed for resource %s, because there is a meaningful conflict(firstResourceVersion: %q, currentResourceVersion: %q):\n diff1=%v\n, diff2=%v\n",name,originalResourceVersion,currentResourceVersion,string(diff1),string(diff2))
// Return the last conflict error we got if we have one
err=errors.NewBadRequest(fmt.Sprintf("the API version in the data (%s) does not match the expected API version (%s)",gvk.GroupVersion(),defaultGVK.GroupVersion()))
err=errors.NewBadRequest(fmt.Sprintf("the API version in the data (%s) does not match the expected API version (%s)",gvk.GroupVersion(),defaultGVK.GroupVersion()))