Closed katsew closed 2 years ago
According to the doc, my issue is an expected behaviour.
The operations are applied in order: if any of them fail then the whole patch operation should abort.
https://datatracker.ietf.org/doc/html/rfc6902#page-6
If removing an element from an array, any elements above the specified index are shifted one position to the left.
I'll close the issue, sorry for my misunderstanding.
Hi, I'm using skaffold with helm. I have 2 helm releases need to remove when it is a dev environment. I try removing them via patches, but It shows an error
applying profile "dev": Unable to remove invalid index: 2.
. Here is the patch config that I try to apply.Then I try the following config.
It works and continue running.
Expected behavior
Respect the index in skaffold.yaml
Actual behavior
It seems that patches mutates object immediately and does not respect the index in skaffold.yaml.
Information
Steps to reproduce the behavior
skaffold build -p dev