-
Notifications
You must be signed in to change notification settings - Fork 145
feat: include SPRING_CONFIG_IMPORT #4935
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
base: main
Are you sure you want to change the base?
Conversation
969a874 to
4c69a8e
Compare
Signed-off-by: Jesse Simpson <jesse.simpson@camunda.com>
Signed-off-by: Jesse Simpson <jesse.simpson@camunda.com>
Signed-off-by: Jesse Simpson <jesse.simpson@camunda.com>
Signed-off-by: Jesse Simpson <jesse.simpson@camunda.com>
Signed-off-by: Jesse Simpson <jesse.simpson@camunda.com>
Signed-off-by: Jesse Simpson <jesse.simpson@camunda.com>
Signed-off-by: Jesse Simpson <jesse.simpson@camunda.com>
Signed-off-by: Jesse Simpson <jesse.simpson@camunda.com>
4de9906 to
e7270d8
Compare
|
@jessesimpson36 could you explain more about the value Also maybe it would be good to talk to PM about this? Since we are adding in java spring specific configuration into the values.yaml which would make it inconsistent, since not all apps are java based. |
It is roughly the same as the functionality of But customers don't know about SPRING_CONFIG_IMPORT, so they often don't use extraConfiguration. The PR removes the need to set that env var explicitly .
Sure. it's not a special file. In fact, spring doesn't look at additional-spring-properties.yaml at all without the SPRING_CONFIG_IMPORT variable. Anything set in the file specified under SPRING_CONFIG_IMPORT will be treated as an overlay ontop of the other config file. so it would override anything in the normal application.yaml.
they know about this PR. I sing it's praises every time I'm in a room with the PMs 😆 |
Which problem does the PR fix?
related to #4878
The point of this change is to reduce how much users need to configure when they want to tweak one setting in application.yaml . in the related ticket, I shared an example that users can set an additional env var SPRING_CONFIG_IMPORT, but with this PR , a user would not need to know about that env var and wouldn't need to set it explicitly. they could just use the placeholder file additional-spring-properties and add extra options in there.
What's in this PR?
you can give this a try with
Optimize is excluded from this PR since optimize does not use Springs default mechanism for importing configuration files.
Checklist
Please make sure to follow our Contributing Guide.
Before opening the PR:
make go.update-golden-only.After opening the PR: