configmapcontroller icon indicating copy to clipboard operation
configmapcontroller copied to clipboard

Using the Update method introduces raise condition

Open lcnuance opened this issue 7 years ago • 0 comments

Two problems:

Update changes all the content of the object. It's better to use patch instead if possible to reduce the risk of replacing the previous changes of an almost simultaneous request.

As another example, using update also has another problem because if you want to port the model to use Daemonsets, update replaces all the content. If the server api is newer and supports update strategies, updating the daemonset would delete this content and default to the OnDelete strategy.

lcnuance avatar Mar 20 '18 13:03 lcnuance