Skip to content

can't inject env var with a comma in it's value #724

@Omar-Bishtawi

Description

@Omar-Bishtawi

Describe the bug
if you try to inject the following annotation to any deployment

appmesh.k8s.aws/sidecarEnv: '[{"sample_key_1":"value","sample_key_2":"value"}]'

you will get the follwing error

malformed annotation appmesh.k8s.aws/sidecarEnv , expected format: EnvVariableKey=EnvVariableValue

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions