Replies: 2 comments
-
For now I have the following option, I need to iterate over the input key/value pair. Do update using the following Do Insert using the following Is there a better way to handle this in single iteration? |
Beta Was this translation helpful? Give feedback.
-
Able to achieve using single iteration. |
Beta Was this translation helpful? Give feedback.
-
Hi Team,
Spend lot of time, but could fine a solution yet, so requesting for community help.
Basically I like to create a new k8s job based on a existing job in k8s but like to modify or add new key value element to the environment variables array.
Input environment variables:
country=India
destination=London
Yaml template of the existing job
After the update using yq, I expect to have the following output, especially the environment variables changed if the key exist, or appended if the key doesn't exist.
Is it possible to achieve this using yq. please assist.
Regards,
Raj
Beta Was this translation helpful? Give feedback.
All reactions