I just workaround it by using k8 secret and map it via
kubernetes.env.secretKeyRef into flink containers.

On Tue, May 4, 2021 at 3:08 PM Lukáš Drbal <lukas.dr...@gmail.com> wrote:

> Hello all!
>
> We are using k8s native support and now we need to pass an env variable
> which contains # character in value.
>
> example:
> containerized.master.env.FOO: foo#bar
>
> Job is submitted by k8 cronjob which puts the config option mentioned
> before into flink-conf.yaml  and submit job via flink run-application
> --target kubernetes-application ...
>
> Now we see env variable FOO but with value "foo" not "foo#bar". Truncated
> value is also in the created config map.
>
> Is there any way to escape the "#" character and get a valid value?
>
> I tried:
> containerized.master.env.FOO: "foo#bar"
>
> but value is always truncated.
> Flink version: 1.13
>
> Thanks!
> Lukas
>

Reply via email to