In Helm, it is possible to specify a release name using
helm install my-release-name chart-path
This means, I can specify the release name and its components (using fullname) using the CLI.
In kustomize (I am new to kustomize), there is a similar concept, namePrefix
and nameSuffix
which can be defined in a kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namePrefix: overlook-
resources:
- deployment.yaml
However, this approach needs a custom file, and using a "dynamic" namePrefix would mean that a kustomization.yaml
has to be generated using a template and kustomize is, well, about avoiding templating.
Is there any way to specify that value dynamically?