title: Is it possible to have a dynamic namePrefix/nameSuffix in kustomize?
body: <p>In Helm, it is possible to specify a release name using</p>
  <p><code>helm install my-release-name chart-path</code></p>
  <p>This means, I can specify the release name and its components (using fullname) using the CLI.</p>
  <p>In kustomize (I am new to kustomize), there is a similar concept, <a href="https://kubectl.docs.kubernetes.io/references/kustomize/nameprefix/" rel="nofollow noreferrer"><code>namePrefix</code></a> and <a href="https://kubectl.docs.kubernetes.io/references/kustomize/namesuffix/" rel="nofollow noreferrer"><code>nameSuffix</code></a> which can be defined in a <code>kustomization.yaml</code></p>
  <pre><code>apiVersion: kustomize.config.k8s.io/v1beta1
  kind: Kustomization
  
  namePrefix: overlook-
  
  resources:
  - deployment.yaml
  </code></pre>
  <p>However, this approach needs a custom file, and using a &quot;dynamic&quot; namePrefix would mean that a <code>kustomization.yaml</code> has to be generated using a template and kustomize is, well,  about avoiding templating.</p>
  <p>Is there any way to specify that value dynamically?</p>