-
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
Properly support defining env vars from secret/configmap keys #9758
Conversation
b3cb6ee
to
8f531a9
Compare
@iocanel this is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great.
The only thing I'd like to be added is to slightly extend the coverage. See details in the comments.
...rnetes/quarkus-standard-way/src/test/resources/kubernetes-with-env-from-configmap.properties
Show resolved
Hide resolved
...ubernetes/quarkus-standard-way/src/test/resources/kubernetes-with-env-from-secret.properties
Show resolved
Hide resolved
That's ready from my side. I just need to squash the last commits. One thing I'm not too sure about are the |
I absolutely suck at naming, so I won't be able to provide any better one :) |
@metacosm can you please squash the commits in order to make the commit ready for merging? |
@geoand done |
Thanks! |
@@ -1 +1,3 @@ | |||
quarkus.kubernetes.env-vars.ignored.secret=my-secret | |||
quarkus.kubernetes.env.secrets=my-secret | |||
quarkus.kubernetes.env.vars-from-secret.db-password.secret=db-secret |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@metacosm: Since you've asked about naming ... How about
quarkus.kubernetes.env.secret.db-password.secret=db-secret
quarkus.kubernetes.env.secret.db-password.key=database.password
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since, the property that lets you pass one or more secrets is called secrets
I feel that this has to be aligned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that would be too confusing / ambiguous so I'd rather have something explicit. 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since, the property that lets you pass one or more secrets is called
secrets
I feel that this has to be aligned.
So what would you suggest then?
@iocanel please review since you've been following more than me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I guess I didn't go through the Java 14 tests… 🤷 |
Java 14 has been a thorn in our side the past few days when it comes to CI... |
Yep, I know 😉 |
Fixes #9629