You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
then releasing, e.g., foo:v2 will update the image field in all the containers. The cause is that the regexp that breaks the spec up into containers does not account for the extra indentation, and treats the whole list of containers as one block; then, the replacement is done with "replace all".
Just changing the "replace all" with "replace" wouldn't help, because it would replace the first occurrence which might still be incorrect. Doing the replacement with the old image would be better, but might still fail to replace anything.
The only real solution (while staying with regexps) is to correctly separate the container blocks.
The text was updated successfully, but these errors were encountered:
This is fixed in #976 -- hooray! (kubeyaml will reindent your blocks the first time it updates the file, if you have them as in the example, but importantly, it won't completely mangle everything.)
If you indent the container blocks in a YAML like this:
then releasing, e.g.,
foo:v2
will update the image field in all the containers. The cause is that the regexp that breaks the spec up into containers does not account for the extra indentation, and treats the whole list of containers as one block; then, the replacement is done with "replace all".Just changing the "replace all" with "replace" wouldn't help, because it would replace the first occurrence which might still be incorrect. Doing the replacement with the old image would be better, but might still fail to replace anything.
The only real solution (while staying with regexps) is to correctly separate the container blocks.
The text was updated successfully, but these errors were encountered: