A JSON patch is a way to define a sequence of manipulating operations on a JavaScript object. The IETF published the RFC 6902 - found here https://tools.ietf.org/html/rfc6902. The Kubernetes API is an user of those JSON patches. In my opinion this is the easiest way to change a Kubernetes resource. Unfortunantely no library was available until yet or I did not fount it. This was my motivation to create the JSON patch library.
- Get Jsonpatch here https://hex.pm/packages/jsonpatch
- Read the documentation here https://hexdocs.pm/jsonpatch/Jsonpatch.html
- And source https://github.com/corka149/jsonpatch
In this sense - keep calm and code Elixir
Your Corka/Sebastian