We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What happened? Patches do not support inserting into the middle (or start) of existing arrays.
What did you expect to happen instead? Patches can insert values into the middle (or start) of an existing array, per the JSON Patch specification: https://datatracker.ietf.org/doc/html/rfc6902#appendix-A.2
How can we reproduce the bug? (as minimally and precisely as possible)
devspace.yaml
version: v2beta1 hooks: - events: - event command: echo first - events: - event command: echo second - events: - event command: echo third profiles: - name: insert-first patches: - op: add path: hooks[0] value: events: - event command: echo new first - name: insert-last patches: - op: add path: hooks value: events: - event command: echo new last
devspace print -p insert-first
fatal yaml: unmarshal errors: line 5: mapping key "command" already defined at line 2 line 6: mapping key "events" already defined at line 3
devspace print -p insert-last
hooks
version: v2beta1 name: test hooks: - events: - event command: echo first - events: - event command: echo second - events: - event command: echo third - events: - event command: echo new last
Local Environment:
The text was updated successfully, but these errors were encountered:
Thanks for reporting this! Yes it looks to work for simple values, but not for objects. We'll look into a fix!
Sorry, something went wrong.
No branches or pull requests
What happened?
Patches do not support inserting into the middle (or start) of existing arrays.
What did you expect to happen instead?
Patches can insert values into the middle (or start) of an existing array, per the JSON Patch specification: https://datatracker.ietf.org/doc/html/rfc6902#appendix-A.2
How can we reproduce the bug? (as minimally and precisely as possible)
devspace.yaml
:devspace print -p insert-first
and get the following error:devspace print -p insert-last
and get the following output (correctly added to end ofhooks
):Local Environment:
The text was updated successfully, but these errors were encountered: