question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
radcortezcommented, Feb 19, 2021

I think we should provide a dotted version of /mp-rest/url to improve the user experience and to not confuse people. I mean you can still use it but a dotted version will also be accepted and map to the right configuration.

0reactions
gsmetcommented, Feb 19, 2021

Well, if we didn’t want to confuse people, we would have proper Quarkus config 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Handle Environment Variables With Kubernetes?
This post shows you the variety of ways Kuberentes helps you create and manage environment variables within kubernetes.
Read more >
Invalid env value with Quarkus RestClient property when ...
I named the environment variable replacing "/" to "" and it worked. I noticed that Quarkus kubernetes extension had already changed "-" to...
Read more >
MicroProfile Config properties :: Open Liberty Docs
MicroProfile Config can be used by applications as a single API that can retrieve configuration information from different sources.
Read more >
Environment Variables Configuration Pattern - Weaveworks
Wanting to learn about various Kubernetes patterns? Check out our blog post regarding the environment variables configuration pattern.
Read more >
Kubernetes Environment Variables - Alen Komljen
Instead of specifying each environment variable individually we can reference the whole config map. Set Environment Variables. To set the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found