Commit Graph

275 Commits

Author SHA1 Message Date
Ioannis Canellos
5346b484f0 fix: leader module now uses 0.2.x parent and is java7 compatible. 2018-11-19 11:31:17 +02:00
Spencer Gibb
af4c15ce49 Updates s-c-build to 1.3.11.RELEASE 2018-11-13 10:39:23 -05:00
Ioannis Canellos
692e497816 chore: bump version of spring-cloud-xxxx. Remove obsolete zipkin module. 2018-11-13 15:10:43 +02:00
Ioannis Canellos
d1790e5eca feat: ribbon starter now includes the actual ribbon dependnecies. 2018-09-18 11:43:52 +03:00
Ioannis Canellos
04c633c08c fix: remove duplicate artifact in spring-cloud-kubernetes-dependencies. 2018-09-18 11:42:55 +03:00
Ioannis Canellos
706d2c721a chore: pick ribbon starter from master. 2018-09-12 11:56:04 +03:00
Ioannis Canellos
6dfbd21c39 fix: issues occurred after drooping spring boot 2.0 related commits. 2018-06-28 22:12:17 +03:00
Georgios Andrianakis
1c8c60f480 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-28 21:58:33 +03:00
Georgios Andrianakis
5205ebb3d3 Remove redundant check 2018-06-28 21:58:33 +03:00
Georgios Andrianakis
00d96a7cdc 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-28 21:58:33 +03:00
Federico Ponzi
d0eeb8ff55 typo fix 2018-06-28 21:58:33 +03:00
Gytis Trikleris
6b129cea9e Enable/disable failure events publishing during leader election 2018-06-28 21:58:33 +03:00
Rafay Khan
1cb39c98ab Update readme with Profile inheritance example 2018-06-28 21:58:33 +03:00
Rafay Khan
86f8206361 Cleanup unused imports in config tests 2018-06-28 21:58:33 +03:00
Rafay Khan
78f7ea090f 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-28 21:58:33 +03:00
Gytis Trikleris
09c6be34da Rename KubernetesHelper to LeaderKubernetesHelper 2018-06-28 21:58:33 +03:00
Gytis Trikleris
0690831e9e Rename isPodAlive() to podExists() 2018-06-28 21:58:33 +03:00
Gytis Trikleris
c90d1b5765 Remove unused dependencies 2018-06-28 21:58:33 +03:00
Gytis Trikleris
b5074c043c Replace copyrights 2018-06-28 21:58:33 +03:00
Gytis Trikleris
244b85ed82 LeaderAutoConfiguration 2018-06-28 21:58:33 +03:00
Gytis Trikleris
07618cb355 LeaderInitiator should revoke leadership on #stop() 2018-06-28 21:58:33 +03:00
Gytis Trikleris
3a53e1bcae LeaderInitiator 2018-06-28 21:58:33 +03:00
Gytis Trikleris
ad4a9d090d Update LeadershipController#revoke logic 2018-06-28 21:58:33 +03:00
Gytis Trikleris
f3749fab75 LeadershipController#revoke 2018-06-28 21:58:33 +03:00
Gytis Trikleris
cf243070c4 KubernetesHelper#removeConfigMapEntry 2018-06-28 21:58:33 +03:00
Gytis Trikleris
fa91910cee LeaderContext 2018-06-28 21:58:33 +03:00
Gytis Trikleris
7f6627e490 LeadershipController using KubernetesHelper 2018-06-28 21:58:33 +03:00
Gytis Trikleris
23fc9893bb Leader using KubernetesHelper 2018-06-28 21:58:33 +03:00
Gytis Trikleris
4a2748c1fa KubernetesHelper 2018-06-28 21:58:33 +03:00
Gytis Trikleris
fffe31621b LeadershipController#getLeader 2018-06-28 21:58:33 +03:00
Gytis Trikleris
0f56104bcf LeaderAutoConfiguration and LeaderProperties 2018-06-28 21:58:33 +03:00
Gytis Trikleris
5a7a2c4e61 Refactor lock to leader 2018-06-28 21:58:33 +03:00
Gytis Trikleris
289d4e90e3 Initial LeaderInitiator 2018-06-28 21:58:33 +03:00
Gytis Trikleris
0fd9a7e498 KubernetesLockRegistry 2018-06-28 21:58:33 +03:00
Gytis Trikleris
bd2a39be31 ConfigMapLockRepositoryTest 2018-06-28 21:58:33 +03:00
Gytis Trikleris
42b8b036b5 Fix kubernetes condition in ConfigMapLockRepositoryIT 2018-06-28 21:58:33 +03:00
Gytis Trikleris
3eab7fa49a KubernetesLock#unlock() 2018-06-28 21:58:33 +03:00
Gytis Trikleris
0d33d26b6a KubernetesLock#tryLock 2018-06-28 21:58:33 +03:00
Gytis Trikleris
7e92d8a03a KubernetesLock#lockInterruptibly() 2018-06-28 21:58:33 +03:00
Gytis Trikleris
52e82796ba KubernetesLock#lock() 2018-06-28 21:58:33 +03:00
Gytis Trikleris
a67dbf37d1 ConfigMapLockRepository 2018-06-28 21:58:33 +03:00
Gytis Trikleris
561bc9d00c ConfigMapLockRepository 2018-06-28 21:58:33 +03:00
Stefan Bley
e50eb097f0 Fixed some typos in README.md
The typo fixes (if not fixed already) from https://github.com/fabric8io/spring-cloud-kubernetes/pull/94
2018-06-28 21:58:33 +03:00
Thomas Buß
02b9ac4dfc Make documentation for DiscoveryClient more explicit 2018-06-28 21:58:33 +03:00
Georgios Andrianakis
ca63bb2caf Fix issue with ConfigMap with profiles inside and no active profiles 2018-06-28 21:58:33 +03:00
Georgios Andrianakis
218e5cf816 Change package of MockitoJUnitRunner
The old org.mockito.runners.MockitoJUnitRunner has been deprecated in
favor of org.mockito.junit.MockitoJUnitRunner
2018-06-28 21:58:33 +03:00
Georgios Andrianakis
c62161e33c Fix spelling of log message 2018-06-28 21:58:33 +03:00
Georgios Andrianakis
2dc711fa66 Fix ConfigMap with profiles functionality
Fixes: #173
2018-06-28 21:58:33 +03:00
computerlyrik
a9940c7350 add info about enabling annotation (#144) 2018-06-28 21:58:33 +03:00
Spencer Gibb
b95bc427af Fixes dual discovery client beans by only relying on auto-configuration 2018-06-28 17:18:54 +03:00