428 Commits

Author SHA1 Message Date
buildmaster
7cde2e751a Bumping versions to 3.0.8-SNAPSHOT after release 2022-06-29 22:06:59 +00:00
buildmaster
d52c8572af Going back to snapshots 2022-06-29 22:06:58 +00:00
buildmaster
27b7570361 Update SNAPSHOT to 3.0.7 2022-06-29 22:04:50 +00:00
buildmaster
08973e65dc Bumping versions to 3.0.7-SNAPSHOT after release 2021-12-15 16:51:44 +00:00
buildmaster
12349fef16 Going back to snapshots 2021-12-15 16:51:43 +00:00
buildmaster
778368eeb1 Update SNAPSHOT to 3.0.6 2021-12-15 16:49:37 +00:00
buildmaster
dea6e10c61 Bumping versions to 3.0.6-SNAPSHOT after release 2021-09-21 14:30:23 +00:00
buildmaster
e6aa33a1da Going back to snapshots 2021-09-21 14:30:23 +00:00
buildmaster
a16e447407 Update SNAPSHOT to 3.0.5 2021-09-21 14:27:28 +00:00
Ryan Baxter
719e06950c Use ConfigClientProperties if it exists in the BootstrapContext (#1931)
* Use ConfigClientProperties if it exists in the BootstrapContext before creating a new one.  Fixes  #1919

* Add back test, have one test use uri from properties
2021-07-16 12:02:40 -04:00
buildmaster
54bd71bfe0 Going back to snapshots 2021-05-27 21:08:06 +00:00
buildmaster
3db7020028 Update SNAPSHOT to 3.0.4 2021-05-27 21:04:51 +00:00
buildmaster
abe57b6663 Bumping versions to 3.0.5-SNAPSHOT after release 2021-05-27 07:55:08 +00:00
buildmaster
2486acc011 Going back to snapshots 2021-05-27 07:55:07 +00:00
buildmaster
0b67bd3495 Update SNAPSHOT to 3.0.4 2021-05-27 07:52:15 +00:00
spencergibb
e645c80215 Adds tests for retry properties in import url.
See gh-1797
2021-05-26 11:32:00 -04:00
spencergibb
e9fa34032b Adds support for retry in profile specific properties.
in application-<profile>.{properties|yaml}

spring.config.import=configserver:http://configserver.example.com?fail-fast=true&max-attempts=10&max-interval=1500&multiplier=1.2&initial-interval=1100"

This required that the RetryTemplate be created as late as possible and it is no longer put in the bootstrap context. A RetryTemplateFactory was created so the LoaderInterceptor and the ConfigServerInstanceProvider can create a RetryTemplate. ConfigServerConfigDataLocationResolver creates RetryProperties from the url parameters if they are provided.

ConfigServerConfigDataLoader now creates a ConfigClientFailFastException and registers it in the application context rather and returns an empty ConfigData rather than throwing and exception. Then in ConfigClientAutoConfiguration an ApplicationStartedEvent is listened for and if the fail fast exception is there, throws it halting execution. This all allows logging in ConfigData to show.

Fixes gh-1797
2021-05-26 11:31:03 -04:00
spencergibb
529afcda4d remove errant comment 2021-05-24 13:20:41 -04:00
spencergibb
42546c813e Migrate from deprecated Bootstrapper to BootstrapRegistryInitializer
Fixes gh-1890
2021-05-24 13:02:10 -04:00
spencergibb
be708efc18 Use boot config data api to determine resource and location.
Previously the resource name and location needed to be parsed. This change updates NativeEnvironmentRepository to pass a ConfigDataEnvironmentUpdateListener to ConfigDataEnvironmentPostProcessor.applyTo() and match PropertySources to location and resource. PassthruEnvironmentRepository is updated to attach the original PropertySource to use later in the clean() method to retrieve the location and resource avoiding parsing.

Fixes gh-1875
2021-05-05 14:12:06 -04:00
spencergibb
3056d5f842 Fixes profile ordering of remote vs local.
Previously a local profiles specific file would have more priority than a remote profile specific file. Using a new ConfigData Option, this is now fixed.

Fixes gh-1795
2021-04-08 17:39:32 -04:00
Ryan Baxter
a57b465638 Take into account config data in list format (#1853) 2021-03-31 07:01:24 -04:00
spencergibb
50d2f9d334 formatting 2021-03-29 18:07:17 -04:00
spencergibb
9b9b6838b6 Merge branch '2.2.x' 2021-03-29 18:06:37 -04:00
spencergibb
f4aab7f15d Adds support for uri encoded username/password
Fixes gh-1621
2021-03-29 18:05:06 -04:00
buildmaster
fdbce34628 Bumping versions to 3.0.4-SNAPSHOT after release 2021-03-17 21:35:17 +00:00
buildmaster
0fe3c496f4 Going back to snapshots 2021-03-17 21:35:17 +00:00
buildmaster
1210effa44 Update SNAPSHOT to 3.0.3 2021-03-17 21:32:52 +00:00
spencergibb
62c96d059c removes todo that has been completed 2021-03-15 20:56:20 -04:00
Ryan Baxter
964238a5f2 Use property source name in ConfigServerConfigDataLocator 2021-03-15 19:35:26 -04:00
Ryan Baxter
7f17b77853 Get all property sources for bootstrap, configserver, and configclient in health indicator 2021-03-15 16:42:41 -04:00
spencergibb
03cdebcffd Adds resource to logging 2021-03-12 18:49:39 -05:00
spencergibb
4010a7cf7c Adds support for Tls to config data.
Moves common setup to new ConfigClientRequestTemplateFactory class that was replicated between two implementations.

Fixes gh-1689
2021-03-12 18:31:25 -05:00
buildmaster
35f219c296 Bumping versions 2021-03-11 09:59:24 +00:00
spencergibb
df5bda79ff Fixes test to mock RestTemplate response. 2021-03-10 18:48:06 -05:00
spencergibb
a09d4bf3fd Adds null checks to test 2021-03-10 18:33:38 -05:00
spencergibb
587cc97b4c Adds ignore imports and profiles to ConfigData.
This allows config server to apply profiles and imports while ignoring them on the client side.

Fixes gh-1788
2021-03-10 17:55:20 -05:00
spencergibb
823d201701 fixes typo 2021-03-10 17:54:10 -05:00
spencergibb
2ea5e11c9a Fail if no configserver config import.
Adds ConfigServerConfigDataMissingEnvironmentPostProcessor that checks if there is a spring.config.import=configserver: statement. If not, an exception is thrown and a FailureAnalyzer provides hints to fix the issue.

Fixes gh-1813
2021-03-10 16:59:29 -05:00
buildmaster
55bba36e2f Bumping versions to 2.2.8.BUILD-SNAPSHOT after release 2021-02-11 13:53:29 +00:00
buildmaster
f1ab6d442f Going back to snapshots 2021-02-11 13:53:28 +00:00
buildmaster
ce0cd0125c Update SNAPSHOT to 2.2.7.RELEASE 2021-02-11 13:50:56 +00:00
buildmaster
5c383266f9 Bumping versions to 3.0.3-SNAPSHOT after release 2021-01-27 20:42:26 +00:00
buildmaster
8e984b8426 Going back to snapshots 2021-01-27 20:42:26 +00:00
buildmaster
b362b58e2f Update SNAPSHOT to 3.0.2 2021-01-27 20:39:53 +00:00
buildmaster
dca097fde1 Bumping versions to 3.0.2-SNAPSHOT after release 2021-01-08 18:18:11 +00:00
buildmaster
e192b7a9bc Going back to snapshots 2021-01-08 18:18:11 +00:00
buildmaster
de32eb3d4d Update SNAPSHOT to 3.0.1 2021-01-08 18:15:27 +00:00
spencergibb
a95f1300ad Ensures spring.cloud.config.name takes precedence.
spring.cloud.config.name should only default to spring.application.name, not be overridden by it.

Fixes gh-1784
2021-01-08 12:54:46 -05:00
spencergibb
ccb32d23fc Only use spring.cloud.config.profiles if not 'default'.
In ConfigData, the Profiles object takes care of resolving the default profile. So only prefer spring.cloud.config.profiles if it has been set to something other than 'default'.

Fixes gh-1777
2020-12-23 12:49:42 -05:00