-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable substitution failed: missing closing brace when using variable substitution in Kustomization #290
Comments
This is likely because the variable name contains a hyphen ( |
Thanks a lot, I have actually just found exactly the same! It works with underscores, perhaps it's worth adding to documentation (all the limitations)? And maybe have a better error handling / validation of characters? |
This is a super interesting and useful feature by the way, e.g. I use terraform to create all resources like public IP, then I create a config map and can reference the IP from config map instead of hardcoding it. Really well though through 👍 |
Hi, I have a similar problem, I generate ConfigMap in my kustomization.
but the file app-conf contain spring placeholders like this :
I have the same error message: The only way I found is to entirely disable envsubst for this configmap.
|
@pmialon did you find a solution? |
From the docs:
|
Describe the bug
I have set up a simple variable substitution as described in the documentation from config map:
Then I use it in helm release values:
kubectl get configmap
When Kustomization controller runs, I get the following error:
var substitution failed for 'my-app': variable substitution failed: missing closing brace
If I write a random name (var does not exist in config map) instead of
kubelet-identity-client-id
, then an empty string is written.Expected behavior
No error or another error that describes what is the problem (the closing brace seems to be in place at least right now)
Additional context
Below please provide the output of the following commands:
The text was updated successfully, but these errors were encountered: