From c573bdbe11e433e26f71581cde8f80eb5d7c3637 Mon Sep 17 00:00:00 2001
From: buildmaster
force-pull: true team-c: pattern: team-c-* - uri: http://git/team-a/config-repo.git
![]() | Note |
|---|---|
The default value for |
![]() | Warning |
|---|---|
With VCS based backends (git, svn) files are checked out or cloned to the local filesystem. By default they are put in the system temporary directory with a prefix of |
There is also a "native" profile in the Config Server that doesn’t use + uri: http://git/team-a/config-repo.git
![]() | Note |
|---|---|
The default value for |
As Spring Cloud Config Server has a clone of the remote git repository
+after check-outing branch to local repo (e.g fetching properties by label) it will keep this branch
+forever or till the next server restart (which creates new local repo).
+So there could be a case when remote branch is deleted but local copy of it is still available for fetching.
+And if Spring Cloud Config Server client service starts with --spring.cloud.config.label=deletedRemoteBranch,master
+it will fetch properties from deletedRemoteBranch local branch, but not from master.
In order to keep local repository branches clean and up to remote - deleteUntrackedBranches property could be set.
+It will make Spring Cloud Config Server force delete untracked branches from local repository.
+Example:
spring: + cloud: + config: + server: + git: + uri: https://github.com/spring-cloud-samples/config-repo + deleteUntrackedBranches: true
![]() | Note |
|---|---|
The default value for |
![]() | Warning |
|---|---|
With VCS based backends (git, svn) files are checked out or cloned to the local filesystem. By default they are put in the system temporary directory with a prefix of |
There is also a "native" profile in the Config Server that doesn’t use Git, but just loads the config files from the local classpath or file system (any static URL you want to point to with "spring.cloud.config.server.native.searchLocations"). To use the diff --git a/multi/multi_spring-cloud-config.html b/multi/multi_spring-cloud-config.html index 266ff3f9..09455401 100644 --- a/multi/multi_spring-cloud-config.html +++ b/multi/multi_spring-cloud-config.html @@ -1,3 +1,3 @@
-Table of Contents
Table of Contents