How to set metadata.name
from a variable value, when kustomizing a base ressource.
For creating for example a namespace, but we don’t know its name in advance but need to “kustomize” like adding commonLabels etc to it?
The way Kustomize operates is that you kustomize a base resource already defined with an apiVersion, kind, metadata.name. So I haven't found a way to afterwards set the final resource name.