-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Sharing configuration between different teams #1917
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
Comments
I don't believe so but I can think of 2 possible solutions to maybe accomplish this another way.
|
I tried your suggestion in option 1 and it seems that if there are updates in the submodule, they are not pulled to the config server. What do I miss here? |
Did you set
|
@ryanjbaxter, Yes I set this parameter. |
Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file. |
I can't provide an example with AWS code commit, but I will try provide an example with GitHub as the git source |
hi @ryanjbaxter the github project can be found here: There is a git repo for configuration In order to see the issue, what seems like a bug:
AFAIK the browser request is similar to the request the spring config client are asking, the problem will exists on the client as well. Please update me with your results. Thanks, |
I played around with the sample but I don't think we update submodules after they are cloned initially. I created an issue to track this I guess that leaves us with option 2 from above to support what you were trying to do. |
@ryanjbaxter eventually to solve this issue I will use the overide configuration - that is shared for all clients |
The override feature is fine. But I dont think option 2 is an abuse of a feature at all, I think its one of the benefits |
just to understand - you mean that I will do it in the client side, right? I also found another solution that I can have repositories for support teams, repositories for developers and root repository to put configuration that is relevant to all teams:
|
Correct |
The problem with that,
especially when I need to use CustomConfigServiceBootstrapConfiguration because I want to read the username/password at runtime. I don't think it's possible in the new way. |
We still support security using |
I think that I tried to make the CustomConfigServiceBootstrapConfiguration works with the new way and it didn't work. |
This is probably the class you want to look at registering as a bean and customize it Anyways this is a different topic to your original one. I think you have a workaround for what you want to do and have a few other options to try. Can we close this issue? |
Hi Yes you can close this issue |
I would like to know if it's possible to have different repos for different teams and a shared repo
so I will be able to have a shared repo that will contain a configuration that is relevant to all the teams
for example:
I have team-a and team-b, each one have it's own repo for their configurations but I want also to have a repo for shared configuration, so when team-a is asking for it's configuration it will get also the shared configuration in the shared repo.
for example, when I will access the spring cloud config via:
localhost:8888/team-a-app/default I will get also data from the https://git/common/config-repo.git
is it doable ?
spring:
cloud:
config:
server:
git:
uri: https://git/common/config-repo.git
repos:
team-a:
pattern: team-a-*
cloneOnStart: true
uri: https://git/team-a/config-repo.git
team-b:
pattern: team-b-*
cloneOnStart: false
uri: https://git/team-b/config-repo.git
team-c:
pattern: team-c-*
uri: https://git/team-a/config-repo.git
The text was updated successfully, but these errors were encountered: