-
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
Add support to prefix for envFrom #39782
Conversation
d5a146f
to
1c38724
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Converting to draft as it's using a snapshot version. |
03196a5
to
3481619
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b91d285
to
364d6ac
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I will fix the import sort soon... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🙈 The PR is closed and the preview is expired. |
@@ -164,7 +164,7 @@ | |||
<kotlin.coroutine.version>1.8.0</kotlin.coroutine.version> | |||
<azure.toolkit-lib.version>0.27.0</azure.toolkit-lib.version> | |||
<kotlin-serialization.version>1.6.2</kotlin-serialization.version> | |||
<dekorate.version>4.1.2</dekorate.version> <!-- Please check with Java Operator SDK team before updating --> | |||
<dekorate.version>4.1.3</dekorate.version> <!-- Please check with Java Operator SDK team before updating --> |
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.
@gsmet, should this change be on separated pull request?
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 I assume the version bump is fine with you?
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 actually don't know and didn't get a chance to check… That version of dekorate uses an older sundrio version than the one used in the Kubernetes client and I have no idea about compatibility. I would have preferred this upgrade to be isolated from this PR if at all possible and be consulted before merging it, as is mentioned in the POM file.
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.
Fair enough.
When you get please chance, please check the version and see if everything works as expected.
Thanks!
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.
This was necessary because dekorate did not support prefix for env, I had to implement this on the dekorate side.
Without this version, this PR breaks.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
You're right. Maybe we could use the quarkus.kubernetes.env.mapping."DB1_".as-prefix-for-secret=my-secret
quarkus.kubernetes.env.mapping."CM1_".as-prefix-for-configmap=my-cm |
Hi @metacosm Sorry for delay... I am back now :) I think that using this one:
We need to set the
It means that to set the prefix we need to set the with-key. two properties to set the prefix, what do you think about @iocanel suggestion? quarkus.kubernetes.env.prefix."MY_PREFIX_".fromSecret=my-secret |
01a5444
to
ad70cb1
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ad70cb1
to
69dc609
Compare
This comment has been minimized.
This comment has been minimized.
You're right again :)
I guess that's indeed the best solution but then I'd do: quarkus.kubernetes.env.prefixes."MY_PREFIX_".for-secret=my-secret If we wanted to be more fluent, we could do: quarkus.kubernetes.env.using."MY_PREFIX_".as-prefix-for-secret=my-secret but I guess that would be less legible on the |
I loved the last sample! quarkus.kubernetes.env.using."MY_PREFIX_".as-prefix-for-secret But as I said, I think that: quarkus.kubernetes.env.prefixes."MY_PREFIX_".for-secret=my-secret Is better for both (customer and code) |
18473d9
to
31e87fa
Compare
This comment has been minimized.
This comment has been minimized.
a8acf83
to
cf2872a
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cf2872a
to
3c8c451
Compare
3c8c451
to
58575e7
Compare
Status for workflow
|
@iocanel can you have a look at this? Thanks |
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
We need to wait the release of new https://github.com/dekorateio/dekorate version