Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePatch ¶
func CreatePatch(oldJSON []byte, newObj interface{}, response *v1.AdmissionResponse) error
CreatePatch accepts an old and a new object and creates a patch of the differences as specified in http://jsonpatch.com/ and updates the response accordingly. The old object should be the Raw object received in the original request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.