-
Notifications
You must be signed in to change notification settings - Fork 693
Merge gcp-config
module into gcp-autoconfigure
#299
Comments
Currently, the The alternatives are:
We felt the separate If there are any other alternatives besides these that are better than what we currently have, feel free to suggest them. If not, it's probably safe to close this issue as working as intended. |
I think the main reason to have this |
We thought about this, but wouldn't it end up as a circular dependency? i.e., |
Not necessary that The sample on the matter we can see in the Spring Cloud Sleuth: https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/autoconfig/TraceEnvironmentPostProcessor.java#L48 |
Relevant feedback from @snicoll:
|
Don't you need something more besides a class check? What happens if I have this on my classpath and I run the app in my IDE? |
@snicoll it's not totally obvious to me that anything will be removed, which is why we're suggesting to merge the PR as-is. We will need to address my comment and come up with a better alternative in order to remove anything. We're aware of the limitations that exist, but some/most of them are a consequence of how Spring Cloud Config works. I made it clear before that this approach is the "lesser of the all evils" accessible to us.
It's the only way I know of using the
There is no such restriction. You can use Config from outside GCP.
As far as I'm aware, in the unlikely scenario that anyone does that, nothing happens. |
@artembilan are you suggesting we do something like That could actually be a better compromise, if it works. |
After playing around with this approach for a while, I found two considerable issues:
I don't think this is a viable solution due to these two points, but let me know if I'm missing anything. |
I just tried running a new app with only |
That was just an idea from an experience I have so far. I'm not familiar with Spring Cloud Config project, but I guess that is a right place to borrow ideas how to be for this GCP Config feature. |
Fixed by #341 |
Spin-off from the discussion in #276.
The text was updated successfully, but these errors were encountered: