mirror of https://github.com/k3s-io/k3s
adding a apiserver log message when patch fails because a meaningful conflict
parent
6a199706cb
commit
78fc311f1f
|
@ -589,6 +589,7 @@ func patchResource(ctx api.Context, admit updateAdmissionFunc, timeout time.Dura
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if hasConflicts {
|
if hasConflicts {
|
||||||
|
glog.V(4).Infof("patchResource failed for resource %s, becauase there is a meaningful conflict.\n diff1=%v\n, diff2=%v\n", name, diff1, diff2)
|
||||||
return updateObject, updateErr
|
return updateObject, updateErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue