-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes env vars generation changed unexpectedly #9629
Comments
Also cc @metacosm |
I will take a look ASAP. |
Yes, I'm surprised that that was the previous behavior because I didn't
encounter it in my testing and it definitely isn't / wasn't documented.
…On Wed, May 27, 2020 at 12:59 PM Ioannis Canellos ***@***.***> wrote:
CC @geoand <https://github.com/geoand> @iocanel
<https://github.com/iocanel>
Hmmm, I didn't realize this used to work. In fact I was about ti implement
it now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9629 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA5J6JACEQ2CBEPKEMMJPDRTTW67ANCNFSM4NL7MQ5A>
.
|
I'm fine with the old syntax not working, if there's a replacement and migration documentation. In fact, just today I've learnt (in the linked Zulip topic) that there's a new syntax for env vars coming in 1.5 (a82951f), but there's nothing in the 1.5 migration guide. |
In the new syntax we need to implement support for something like:
AFAIR, @metacosm expressed the desire to work on this issue, so I'll assign it to him. |
I will repeat that until someone acks -- we need the migration guide content! |
That said, the old syntax should still be working for the time being. |
I think I have clearly demonstrated that some of it does not :-) |
Yep, but the intent is to remedy to this situation :) |
This is needed to be able to address quarkusio#9629. Things are still not completely working but getting there.
I've completed the first pass on a fix in the #9758 PR and added support for defining vars from secret/configmap keys using the following syntax: quarkus.kubernetes.env.vars-from-secret.foo.key=keyName
quarkus.kubernetes.env.vars-from-secret.foo.secret=secretName which would create the following: env:
- name: FOO
valueFrom:
secretKeyRef:
key: keyName
name: secretName
optional: false and would be equivalent to the previous syntax: quarkus.kubernetes.env-vars.foo.secret=secretName
quarkus.kubernetes.env-vars.foo.value=keyName |
That looks good to me. |
For reference, the new syntax is: quarkus.kubernetes.env.mapping.foo.with-key=keyName
quarkus.kubernetes.env.mapping.foo.from-secret=secretName since that was changed during the PR review process. |
Describe the bug
I have these lines in my
application.properties
:And I expect Quarkus Kubernetes to generate an env var that corresponds to the
database
field of thepostgresql
secret. This is how it works in Quarkus 1.3.3, at least:However, when trying on Quarkus 1.5.0.CR1, I only get this:
Expected behavior
See above.
Actual behavior
See above.
To Reproduce
Steps to reproduce the behavior:
quarkus-openshift
.application.properties
.mvn clean package
target/kubernetes/openshift.yml
Configuration
See above.
Environment (please complete the following information):
uname -a
orver
:java -version
:mvnw --version
orgradlew --version
):Additional context
See also https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/Kubernetes.20env.20vars
The text was updated successfully, but these errors were encountered: