Support for `kubectl replace`
Opened this issue · 0 comments
cmwylie19 commented
Is your feature request related to a problem? Please describe.
For circumstances when certainty is needed that no changes have been made to a resource between reading and updating. Helps when things are competing for the same resource.
Describe the solution you'd like
- Given a resource is fetched with a
resourceVersion
- When an update is created to that resource and the resourceVersion has changed
- Then the update is rejected.
Error from server (Conflict): error when replacing "STDIN": Operation cannot be fulfilled on configmaps "so": the object has been modified; please apply your changes to the latest version and try again
Describe alternatives you've considered
Additional context
Came out of a convo with @bburky when ideating on potential ways add DB semantics of ETCD around an issue thatn @bdw617 was having where he needs a transactional style data store.