<p>I'm using ArgoCD and I want to track files under different subdirectories. I've setted the path as ./root_directory, but I would like to track also files in the subdirectories of root_directory. For instance /root_directory/dir1, /root_directory/dir2, but also /root_directory/dir1/dir1.1 ecc..
How can I do that?</p>
<p>Thanks for your help</p>

<p>You can add the <code>spec.source.directory.recurse</code> attribute.</p>
<p>See an example below:</p>
<pre><code>apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: argocd-app
  namespace: argocd
spec:
  project: default
  source:
    path: some/path/
    repoURL: https://github.com/your-repo.git
    targetRevision: HEAD
    directory:
      recurse: true # &lt;--- Here
  destination:
    namespace: '*'
    server: https://kubernetes.default.svc
  syncPolicy:
    automated:
      prune: true
</code></pre>
