title: Referring to namespace using environment variable
body: <p>Does anyone know a way to <strong>refer to a namespace</strong> inside of values.yaml using an environment variable? </p>
  
  <p>For example, when mapping a secret </p>
  
  <pre><code>secret:
      # RabbitMQ password
      V_RABBIT_PASSWORD:
        secretKeyRef:
          name: jx-staging-rabbit //&lt;--- this needs to work for staging and prod
          key: rabbitmq-password
  </code></pre>
  
  <p>This is the section in deployment.yaml</p>
  
  <pre><code>            - name: {{ $name | quote }}
                valueFrom:
                  secretKeyRef:
                    name: {{ $value.secretKeyRef.name | quote }} //&lt;-- trying different combinations here
                    key: {{ $value.secretKeyRef.key | quote }}
  </code></pre>
  
  <p>attempts:</p>
  
  <pre><code>${NAMESPACE}-{{ $value.secretKeyRef.name | quote }}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{{ template "namespace" . }}-{{ $value.secretKeyRef.name | quote }}
  </code></pre>
  
  <p>Thanks</p>