snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Kubernetes extension should not produce env vars with slashes when mapping mp-rest client config to env vars #274

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Given an application.properties like the following:

foo/mp-rest/url=http://localhost:8080

quarkus.kubernetes.env.mapping.foo/mp-rest/url.from-secret=something-parameters
quarkus.kubernetes.env.mapping.foo/mp-rest/url.with-key=foo.url

The generated kubernetes.yml uses the FOO/MP_REST/URL env var, which is invalid, as noted by https://github.com/eclipse/microprofile-rest-client/issues/171 and https://github.com/eclipse/microprofile-config/issues/420 in the past.

We should replace / with _ and figure out if MP-Config actually can do the reverse mapping.


https://github.com/quarkusio/quarkus/issues/15201


$upstream:15201$