-
Notifications
You must be signed in to change notification settings - Fork 108
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
can't inject env var with a comma in it's value #724
Comments
This is expected, this has to be in the format of this https://github.com/aws/aws-app-mesh-controller-for-k8s/blob/master/pkg/inject/constants.go#L54 |
Thanks for the info @dileepng . |
Hey Omar, We're not necessarily against improving the behavior here, but it's tricky to do in a fairly general way that's reasonably backwards compatible. We'd likely need to adapt a system that's capable of parsing the string such that Perhaps the best answer is to add a new variable that has a more robust parsing system around it - maybe |
@BennettJames the idea of introducing a new env variable with robust parsing system is good one and resolve any backward compatibility issues that might arise of modifying the behavior of the old also using JSON as a way to map env vars with there values is more robust and easier to parse in a consistent expected way. |
Describe the bug
if you try to inject the following annotation to any deployment
you will get the follwing error
Steps to reproduce
attach any json value with multiple keys to sidecar env var .
Expected outcome
the env variable to have a valid json as it's value
Additional Context:
I think this behavior is expected since in herethe method only split by
,
and we can't escape this charachter in any way.The text was updated successfully, but these errors were encountered: