<p>Currently I do this:</p>
<pre><code>configMapGenerator:
  - name: sql-config-map
    files:
      - &quot;someDirectory/one.sql&quot;
      - &quot;someDirectory/two.sql&quot;
      - &quot;someDirectory/three.sql&quot;
</code></pre>
<p>and I would like to do sth. like this:</p>
<pre><code>configMapGenerator:
  - name: sql-config-map
    files:
      - &quot;someDirectory/*.sql&quot;
</code></pre>
<p>Is this somehow possible?</p>

eventhorizon
<p>Nope.</p>
<p>See discussion around that feature in <a href="https://github.com/kubernetes-sigs/kustomize/issues/189#issuecomment-409042317" rel="nofollow noreferrer">comment on &quot;configMapGenerator should allow directories as input&quot;</a></p>
<p>The main reason:</p>
<blockquote>
<p>To move towards explicit dependency declaration, we're moving away from allowing globs in the kustomization file</p>
</blockquote>
