<p>I have this argo application :</p>
<pre><code>project: myproject
    destination:
      server: 'https://kubernetes.default.svc'
      namespace: myns
    syncPolicy:
      automated:
        prune: true
      syncOptions:
        - CreateNamespace=true
    sources:
      - repoURL: &gt;-
          https://gitlab.com/myrepos/helm-repo.git
        path: helm
        targetRevision: HEAD
        helm:
          valueFiles:
            - $values/mocks/values.yaml
      - repoURL: &gt;-
          https://gitlab.com/myrepos/values-repo.git
        targetRevision: HEAD
        ref: values
</code></pre>
<p>This is my values file:</p>
<pre><code>mocks:
  projectName: &quot;soapui-project&quot;
</code></pre>
<p>this works fine and I am able to set the values from a remote repo as long as my xml file is in the same repo as my helm chart.</p>
<p>This is a template from my chart, it's a kubernetes configmap:</p>
<pre><code>{{ $projectFile := printf &quot;%s.xml&quot; .Values.mocks.projectName  }}
{{ $projectName := .Values.mocks.projectName  }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: &quot;{{ $projectName | lower }}&quot;
data:
{{ ($.Files.Glob $projectFile).AsConfig | indent 1 }}
</code></pre>
<p>My problem/question:</p>
<p>Can I read the file contents if the file is not in the same repo as the helm chart, let's say my xml file is in my values repo and pass it's content to the data of the config map?</p>
<p>I am expecting to be able to put my xml soapui file in a distant repo and pass it's content to my argo app's helm chart the same way I pass values from another repo to my argo App</p>

titter
<p>No, you cannot. The <code>$values</code> feature is very specific to sharing the values file, not arbitrary config files.</p>
<p>This PR intends to implement the more general feature you need: <a href="https://github.com/argoproj/argo-cd/pull/12508" rel="nofollow noreferrer">https://github.com/argoproj/argo-cd/pull/12508</a></p>
