Replies: 1 comment
-
Have a look here: https://mikefarah.gitbook.io/yq/operators/add#append-to-existing-array, and directly underneath that is how to prepend :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How do i insert an object into the starting or ending of a list of objects.
Ex:
Below is my yaml
microservices:
port: 443
port: 8080
And i want to insert a new record as below at the starting of the list.
microservices:
port: 8081
port: 443
port: 8080
Is there an easy way to do this. Can someone please help me with your suggestions.
Beta Was this translation helpful? Give feedback.
All reactions