title: Openshift CLI :: How to set environment variables that refer to application metadata?
body: <p>I am trying to set environment variables to <code>deployment config</code> -- these environment variables will be referring to <code>application metadata</code> for the values.</p>
  
  <p>I am able to specify in <code>deployment_config.yaml</code> as below:</p>
  
  <pre><code> env:
      - name: POD_NAME
        valueFrom:
          fieldRef:
            fieldPath: metadata.name
      - name: POD_NAMESPACE
        valueFrom:
          fieldRef:
            fieldPath: metadata.namespace
  </code></pre>
  
  <p>How do I set environment variables similarly through cli using :
  <code>oc set env</code>, as I did not find options to specify <code>fieldRef</code> &amp; <code>fieldPath</code>.</p>
  
  <p>I am looking for set these kind of environment properties using <code>cli</code>. </p>
  
  <p>Please share if you know any alternatives.</p>