We tried to have equals in the values of environment variables (for a Redis-generated key that is base64-encoded, but that shouldn't matter), but failed to have the proper value in the running app.
We've managed to pinpoint (at least that's from an external, newbie point-of-view) the issue to the init_container script. The awk is performed with the equal sign ("=") as the field separator, breaking any environment value with this character.
A possible idea would be to do something like this instead:
We tried to have equals in the values of environment variables (for a Redis-generated key that is base64-encoded, but that shouldn't matter), but failed to have the proper value in the running app.
We've managed to pinpoint (at least that's from an external, newbie point-of-view) the issue to the init_container script. The
awk
is performed with the equal sign ("=") as the field separator, breaking any environment value with this character.A possible idea would be to do something like this instead:
I'm not an
awk
expert so I cannot really explain how it works or if it doesn't have any side effect, I just tested it like so on an Ubuntu: