title: helm template output showing values not being resolved
body: <p>I'm new to helm charts and K8s, so forgive me.  I'm working on a project that deploys an application project with several apps as part of it.  The previous dev that put the charts together was using a &quot;find-and-replace&quot; technique to fill in values for things like the image repository, tags, etc.  This is making our CICD pipeline development tricky and not scalable.  I'm trying to update the charts to use variables and values.yml files.  Most of it seems to be working, values are getting passed down to the templates except for one part and I can't figure out why.  Its a large project so I won't copy all the chart files. I'll try to lay out the important parts:</p>
  <p><strong>Folder structure:</strong></p>
  <pre><code>helm
    project1
       dev
         charts
            app1
              templates
                 *template files
              Chart.yaml
              values.yaml
            app2
              *same subfolders
            app3
              *same subfolders
         Chart.yml
         values.yml
  </code></pre>
  <p><em><strong>Base Values.yml</strong></em></p>
  <pre><code>artifactory_base_url: company.repo.io/repo_folder
  imageversions:
    app1_tag: 6.1.2-alpine-edge
    app2_tag: 8.1.0.0-edge
    app3_tag: 8.1.0.0-alpine-edge
    app4_tag: 10.1.1-alpine-edge
    initcontainer: latest
  </code></pre>
  <p><em><strong>App Values.yml file</strong></em></p>
  <pre><code>app:
    image: 
      repository: &quot;{{ .Values.artifactory_base_url }}/pingaccess&quot;
      tag: &quot;{{ .Values.pa_tag }}&quot;
  </code></pre>
  <p><em><strong>deployment.yml template file</strong></em></p>
  <pre><code>containers:
        - name: {{ .Chart.Name }}
          image: &quot;{{ .Values.app.image }}&quot;
  </code></pre>
  <p>I'm running the following helm template command to confirm that I'm getting the proper output for at least the app1 part before actually trying to deploy to the k8s cluster.</p>
  <p><code>helm template app1 --set date=&quot;$EPOCHSECONDS&quot; --set namespace='porject_namespace' --values helm/project1/dev/values.yaml helm/project1/dev/charts/app1</code></p>
  <p>Most of the resulting yaml looks great, and it looks like the values I have defined in the base values.yml file are getting passed through in other areas like this example:</p>
  <pre><code>initContainers:
    - name: appinitcontainer
        image: &quot;company.repo.io/repo_folder/initcontainer:latest&quot;
  </code></pre>
  <p>But there is one portion that is populated from the deployment.yml template file that is still showing the curly braces for variables</p>
  <pre><code>containers:
    - name: app1
      image: &quot;map[repository:{{ .Values.image_repo_base_url }}/app1 tag:{{ .Values.app1_tag }}]&quot;
      imagePullPolicy: Always
  </code></pre>
  <p>I've tried making variations in all the files mentioned above to remove quotes, use single quotes, etc.  In those attempts I usually get a variation of the following errors:
  &quot;error converting yaml to json. did not find expected key&quot;
  &quot;error mapping values&quot;</p>
  <p>I haven't been able to find a solution.  I'm assuming that the &quot;helm template&quot; command should not contain any braces like that, all variables and values should be resolved.  I'm hoping somebody can provide some tips of things I might be missing.</p>