<p>The use case is to get the environment variable *COUNTRY from all the pods running in a namespace </p>

<pre><code>kubectl get pods podname -n namespace -o 'jsonpath={.spec.containers[0].env[?(@.name~="^COUNTRY")].value}'
</code></pre>

<p>This does not seem to work. any lead?</p>

<pre><code> kubectl get pods -o=jsonpath='{.items[*].spec.containers[*].env[?(@.name=="COUNTRY")].value}'
</code></pre>

<p>Hope this helps. I was just able to run it on mine and it worked the best. </p>
