-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect patch generated with jsonpatch #281
Comments
Thanks for pointing this out!
This is a breaking change. We probably will switch to |
@mengqiy (tangential) Just curious why https://github.com/evanphx/json-patch isn't used here. It's used in k/k. |
@rajathagasthya https://github.com/evanphx/json-patch supports json patch (only applying patch) and json merge patch (generating and applying patch); while mattbaird/jsonpatch supports json patch (generating and applying patch) Generating means: given 2 json objects and return the patch in byte array format. |
I am encountering an issue when trying to inject things into pods with more than 1 container.
The ReplicaSet returns
Error creating: Internal error occurred: Internal error occurred: Unable to remove invalid index: 1
. I've narrowed it down to an issue withjsonpatch
.The issue is outlined here: mattbaird/jsonpatch#7
This fork has the fixes: https://github.com/appscode/jsonpatch
As a note, in the fork
JsonPatchOperation
is now justOperation
.The text was updated successfully, but these errors were encountered: