-
Is your feature request related to a problem? Please describe. Describe the solution you'd like Describe alternatives you've considered Additional context My test config:
Result is error like "invalid character '{' in DSN" |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Hi @MustDie95, could you try it without curly braces? Like $VAR? The expansion should work, but if it doesn't, I'll have a look. |
Beta Was this translation helpful? Give feedback.
-
Have tried like this:
Error log:
Only this method works well:
|
Beta Was this translation helpful? Give feedback.
-
@MustDie95 Yeah cool, thanks for checking! Let me investigate the issue, and I'll get back to you. 🙂 I believe I made it work somehow - don't remember now, but I'll revisit it, and make it work if it doesn't. 👍 |
Beta Was this translation helpful? Give feedback.
-
Ok, so far it works on my end (even with the curly braces and composing env variables from the other environment variables). So, the expansion works correctly for multiple connections. I guess the issue here is somewhat related to where/how you define the env variables. Could you elaborate on that? 👍 P.S. I'll transfer the issue into a discussion, as it works for the test cases I have. 👍 |
Beta Was this translation helpful? Give feedback.
-
My case is to get business metrics for some service in K8s. values.yaml looks like:
I would be glad to receive assistance in correcting possible mistakes and inaccuracies. |
Beta Was this translation helpful? Give feedback.
Looks like I finally solved this puzzle
Thanks to K8s docs (https://kubernetes.io/docs/tasks/inject-data-application/define-interdependent-environment-variables/)
Have renamed PG_DSN variable to PG_XDSN and use correct brackets and voula.. it works as desired..
Now envs in POD's yaml are rendered in correct order: