Commit Graph

310 Commits

Author SHA1 Message Date
Gytis Trikleris
4e63f8db5e Leader election example 2018-08-31 15:20:26 +03:00
Gytis Trikleris
dce324961c Synchronize and test leader watchers 2018-08-31 15:18:20 +03:00
Gytis Trikleris
b8405f2005 Make LeaderAutoConfigurationTests pass without Kubernetes 2018-08-31 15:18:20 +03:00
Gytis Trikleris
ca80117f35 Refactor leader election to use watchers 2018-08-31 15:18:20 +03:00
Stefan Hudelmaier
c48f1d128b 223: Fix issue with nullable targetRefs and addresses in endpoints 2018-08-31 15:16:41 +03:00
Paolo
e4ab0f7b0d renaming kubernetes discovery properties parameter (#226) 2018-08-27 07:19:51 -04:00
Spencer Gibb
933474874b Removes maven plugins that are already configured in s-c-build. 2018-08-06 18:58:38 -04:00
Spencer Gibb
b281bd2d28 Updates formatting and license header 2018-08-03 13:45:46 -04:00
Spencer Gibb
b65f7fc30f Removes mailto to conform to spring patterns 2018-08-03 13:24:17 -04:00
Spencer Gibb
4d2c2edec0 Updates to 1.0.0.BUILD-SNAPSHOT
Also updates to s-c-build 2.1.0.BUILD-SNAPSHOT which is based on boot 2.1.0
2018-08-03 13:11:50 -04:00
Spencer Gibb
9576d6d4b7 Update SNAPSHOT to 0.3.0.RELEASE 2018-08-03 12:45:57 -04:00
Spencer Gibb
44370ddaf4 Fixes test conditions 2018-08-03 12:45:01 -04:00
Spencer Gibb
810af035c4 Allows label updates.
fixes gh-203
2018-08-02 17:47:07 -04:00
Spencer Gibb
07724deeee Updates to latest spring-cloud-build
moves groovy to module tests only
2018-08-02 17:31:36 -04:00
Thomas Buß
61825c80c9 Move mkdir command up one line 2018-07-18 16:11:38 +03:00
Thomas Buß
1433994783 Do not use deprecated environment variables 2018-07-18 16:11:38 +03:00
Thomas Buß
4054392ebc Fix env var interpolation 2018-07-18 16:11:38 +03:00
Thomas Buß
5bdce1be0f Use -exec in find command instead of piping 2018-07-18 16:11:38 +03:00
Thomas Buß
5055f1a231 Replace cpio with cp 2018-07-18 16:11:38 +03:00
Thomas Buß
f9da0e7119 Manually trigger rebuild to test caching 2018-07-18 16:11:38 +03:00
Thomas Buß
f3a8967422 Add caching 2018-07-18 16:11:38 +03:00
Thomas Buß
32bedc2f40 Indentation for notify block, remove old version 2018-07-18 16:11:38 +03:00
Thomas Buß
ad7fdcc579 First (incomplete) draft 2018-07-18 16:11:38 +03:00
Ryan Baxter
d39c0f3c74 Change deprecated Netflix starters. (#215) 2018-07-12 15:58:14 -04:00
Gytis Trikleris
3ad6fa14e1 Don't start LeaderInitiator when creating a bean 2018-07-06 12:58:27 +03:00
Oleg Vyukov
5febe5e440 KubernetesCatalogWatch endpoint based 2018-07-06 12:57:01 +03:00
Georgios Andrianakis
595a34e20a Polish test 2018-07-06 12:48:31 +03:00
Georgios Andrianakis
f3aeb142d0 Fix flaky ribbon test
Fixes: #208
2018-07-06 12:48:31 +03:00
Georgios Andrianakis
a30b2d85dc Allow the use of multiple configmaps as sources 2018-07-01 12:02:17 +03:00
Georgios Andrianakis
5166090b77 Relax the name application.(yaml|properties) constraint in ConfigMap (#170)
When the ConfigMap contains a single entry, then the name of the file
does not have to application.(yaml|properties), but can be any
yaml/properties file.
This facilitates the use case where a confimap is created by something
like:

kubectl create configmap game-config --from-file=/path/app-config.yaml
2018-06-27 22:44:31 +03:00
Georgios Andrianakis
c654079ab4 Remove redundant check 2018-06-27 21:04:00 +03:00
Georgios Andrianakis
471c0a4108 Lazily create the KubernetesProfileApplicationListener
This is needed in order to avoid causing problems to environments
that have spring-cloud-kubernetes on the classpath but don't want to
enable it

Fixes: #131
2018-06-27 21:04:00 +03:00
Federico Ponzi
a4c2b041d1 typo fix 2018-06-27 20:39:42 +03:00
Gytis Trikleris
ae921528d7 Enable/disable failure events publishing during leader election 2018-06-27 20:39:21 +03:00
Rafay Khan
98a95646e3 Update readme with Profile inheritance example 2018-06-27 20:32:39 +03:00
Rafay Khan
c3cdbad86d Cleanup unused imports in config tests 2018-06-27 20:32:39 +03:00
Rafay Khan
50ac65024b Rework profile-based app.yaml parsing to support yaml merging
With the current implementation, any default properties (i.e. part of yaml docs that did not specify a "spring.profile" entry) would not be read. This caused unexpected behavior where "default" keys were not being read, and if NO document specified a "spring.profile" entry, the configmap would be completely ignored.

This new logic instead performs proper yaml merges between any yaml doc that has no "spring.profile" entry, as well as docs with the specific "profile" we have active

Co-authored-by: Vivian Li <vivian@autonomic.ai>
2018-06-27 20:32:39 +03:00
Gytis Trikleris
01fe68eb82 Rename KubernetesHelper to LeaderKubernetesHelper 2018-06-14 13:58:06 +03:00
Gytis Trikleris
76eed93bd5 Rename isPodAlive() to podExists() 2018-06-14 13:58:06 +03:00
Gytis Trikleris
648b1adb67 Remove unused dependencies 2018-06-14 13:58:06 +03:00
Gytis Trikleris
2d6f2a747a Replace copyrights 2018-06-14 13:58:06 +03:00
Gytis Trikleris
4a147b0513 LeaderAutoConfiguration 2018-06-14 13:58:06 +03:00
Gytis Trikleris
43a7ead4b9 LeaderInitiator should revoke leadership on #stop() 2018-06-14 13:58:06 +03:00
Gytis Trikleris
47baca5cac LeaderInitiator 2018-06-14 13:58:06 +03:00
Gytis Trikleris
91f21172fd Update LeadershipController#revoke logic 2018-06-14 13:58:06 +03:00
Gytis Trikleris
2ff2e2cd9a LeadershipController#revoke 2018-06-14 13:58:06 +03:00
Gytis Trikleris
47c37c7f5e KubernetesHelper#removeConfigMapEntry 2018-06-14 13:58:06 +03:00
Gytis Trikleris
eb3bc07d9b LeaderContext 2018-06-14 13:58:06 +03:00
Gytis Trikleris
f8bd3d7272 LeadershipController using KubernetesHelper 2018-06-14 13:58:06 +03:00
Gytis Trikleris
937f2781a0 Leader using KubernetesHelper 2018-06-14 13:58:06 +03:00