spring-cloud / spring-cloud-config

External configuration (server and client) for Spring Cloud
Apache License 2.0
1.97k stars 1.29k forks source link

Applying common configuration to app level configuration or any feasibility #2382

Open Tirumala-K opened 9 months ago

Tirumala-K commented 9 months ago

Problem Statement: We have many micro services with their own app level configuration in repos but the configuration is duplicated across all the app level repos. If we need to change anything like a connection then we are doing it in multiple places.

Possible Solution: Is there a possibility to apply common configuration from one repo to app level specific repo? Or any workarounds to our current problem?

We want to transition from current folder and repo level to either Transition V1 or Transition V2 as depicted below. PS - everybox is a folder unless mentioned as repo

SpringCloudConfigServerRestructure drawio

Tirumala-K commented 9 months ago

FYI - Here is the current config server call we have in the server.

spring:
  cloud:
    bus:
      enabled: true
    config:
      server:
        git:
          uri: https://{giturl_main}/SpringCloudConfigServer/nonprod/{application}.git