-
I have my yaml as below. name: "MicroService" When i run this command below directly, i get the proper output. But if do the same by storing the select condition into a variable, its not working as expected. I tried using env as well, but the result is same. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
strenv
will read the variable as a string - looks like you want to evaluate that string as an expression - tryeval(strenv(REGION))
see https://mikefarah.gitbook.io/yq/operators/eval#dynamically-update-a-path-from-an-environment-variable for an example