Commit Graph

380 Commits

Author SHA1 Message Date
buildmaster
c17b5e4c2a Update SNAPSHOT to 1.0.0.RELEASE 2019-01-22 18:27:58 +00:00
Georgios Andrianakis
6e8b7bcc08 Port doc fix from #311 to proper doc file 2019-01-22 17:44:39 +02:00
Sebastian Gumprich
ce51f39e35 fix wrong link-syntax in readme (#311) 2019-01-21 09:31:40 +02:00
Spencer Gibb
c33e0ff12e Merge branch 'geoand-284' 2019-01-16 17:47:27 -05:00
Spencer Gibb
740c4fd648 fixes merge misses 2019-01-16 17:46:14 -05:00
Spencer Gibb
8783eeb2e2 Merge branch '284' of https://github.com/geoand/spring-cloud-kubernetes into geoand-284 2019-01-16 17:34:07 -05:00
Georgios Andrianakis
eb73e05ccb Set KubernetesServiceInstance.secure based on sane defaults
Fixes: #272
2019-01-16 17:21:51 -05:00
Chin Huang
3409ad81a5 Fix typo that recommends RBAC ensures unauthorized access to Secrets (#306) 2019-01-16 11:20:51 -05:00
Chris Schaefer
7a493b4aac Remove exception from log when configMap can't be read (#303) 2019-01-16 11:18:51 -05:00
Georgios Andrianakis
2a1baa69a8 Address review concerns 2019-01-15 18:05:50 +02:00
Georgios Andrianakis
8e9227b13f Add the ability to only discover services that match certain labels
Arbitrary filtering of services is also possible by supplying a bean of
type KubernetesClientServicesFunction
2019-01-15 13:17:41 +02:00
Spencer Gibb
fcad70f397 Bumps spring cloud build to 2.1.2.BUILD-SNAPSHOT 2019-01-12 13:02:33 -05:00
buildmaster
7530b04850 Bumping versions 2019-01-03 17:11:49 +00:00
buildmaster
7c61999dfd Going back to snapshots 2018-12-21 01:05:39 +00:00
buildmaster
581dd37176 Update SNAPSHOT to 1.0.0.RC2 2018-12-21 01:02:10 +00:00
salaboy
ef51d11f33 #233 Initial Istio Awareness implementation (#286)
* initial profile and check

* initial istio aware profile impl

* adding initial docs

* fixing parent

* using BootstrapConfiguration for istio profile check

* Improve log messages

* Add Istio integration tests

* Remove unused IstioClient

* Remove redundant parent

* Revert "Remove redundant parent"

This reverts commit c41271fa

* Fix startup error

* Add name to istio module

* Move IstioClient out of bootstrap configuration

This is needed because the Kubernetes Config is not a bean in the
bootstrap context.
Furthermore the IstioClient is not used anywhere in the bootstrap
context

* Polish

* Ensure this IstioClient is actually injected

* Fix integration test setup

* more refinements

* aligning property name

* adding headers and small refinements
2018-12-20 12:16:59 -05:00
Ryan Baxter
b3de20b215 Fixing documentation 2018-12-20 10:52:06 -05:00
Georgios Andrianakis
d20fb3e36d Add an integration test for the discovery client (#291)
* Add an integration test for the discovery client

Fixes: #288

* Add missing licenses
2018-12-20 09:24:10 -05:00
Georgios Andrianakis
a006296c78 Rationalize ConfigMap usage when paths (mounted files) are involved
This is done by removing the file walking and loading logic that existed
before and replacing it with an implementation that creates on
ConfigMapResource per specified path.
Reading and processing the content of the path is done in the exact
same way as the enableApi method does thus providing a consistent
experience.

The implementation is inspired by the following comment:
https://github.com/spring-cloud/spring-cloud-kubernetes/issues/230#issuecomment-420341743

Fixes: #230
2018-12-19 20:49:24 +02:00
Peter Butkovic
9a7be93cac docs: native kubernetes service discovery (#300) 2018-12-18 16:27:49 -05:00
Mark Anderson
135bf6f8eb Add InfoContributor reporting pod details (#295)
Fixes gh-128
2018-12-18 14:43:45 -05:00
Mark Anderson
a5baf013f6 Use java.time.Duration for duration based properties. (#294)
* Use java.time.Duration for duration based properties.

* Update javadoc for period in ConfigReloadProperties.
2018-12-14 11:29:58 -05:00
Gytis Trikleris
f335da672c Fix NPE when local leader is null (#297) 2018-12-14 11:19:38 -05:00
Georgios Andrianakis
ad155a60d2 Bump Fabric8 Kubernetes client to latest version (#287) 2018-12-12 11:17:25 -05:00
buildmaster
ab630b488a Going back to snapshots 2018-12-11 22:00:48 +00:00
buildmaster
291929d61a Update SNAPSHOT to 1.0.0.RC1 2018-12-11 21:57:32 +00:00
buildmaster
03f55afc10 Going back to snapshots 2018-12-11 16:46:25 +00:00
buildmaster
9c32877909 Update SNAPSHOT to 2.1.0.RC1 2018-12-11 16:43:15 +00:00
Spencer Gibb
cbdb4ebf78 Delete README.md 2018-12-10 15:50:31 -05:00
Spencer Gibb
5e2859bf6b Updates test for new state of application context 2018-12-07 12:29:28 -05:00
Spencer Gibb
e36b703a8e Uses KubernetesDiscoveryClient as return type so ConditionalOnMissingBean will function correctly.
Also removes extension from KubernetesDiscoveryProperties

See gh-282
2018-12-07 12:10:31 -05:00
Spencer Gibb
0044975f36 Updates property condition to spring.cloud.config.discovery.enabled
also renames class to more clearly define its purpose.
2018-12-07 12:09:08 -05:00
Spencer Gibb
dcdc7c27dc Updates property condition to spring.cloud.config.discovery.enabled 2018-12-07 12:08:34 -05:00
Spencer Gibb
0483187eac Polish tabs to spaces
see gh-283
2018-12-05 11:41:31 -05:00
Georgios Andrianakis
70d164a193 Prevent NPE if k8s Client returns null for metadata and/or annotations (#283)
Fixes #282
2018-12-05 11:40:50 -05:00
Spencer Gibb
c62e67f7ca Moves groovy test to directory that matches package. 2018-12-05 11:40:36 -05:00
Zhanwei Wang
cd04f477ab Enable kubernetes discovery client on bootstrap stage. (#265)
Enable kubernetes discovery client on bootstrap stage so discovery lookup of config client works
2018-12-05 11:33:05 -05:00
salaboy
c4774c3c77 Doc improvements
* initial fixes, links missing

* adding links and resources

* updating headers size and example section

fixes gh-268
2018-12-05 11:31:38 -05:00
Spencer Gibb
15546ff936 Adds metadata debug logging 2018-12-04 18:39:00 -05:00
Julio Cesar Villalta III
bd872515c4 update docs yaml examples, and consistently document code in asciidoc (#280) 2018-11-30 16:01:52 -05:00
Georgios Andrianakis
df1d4424d4 Decouple test execution from microk8s
Now the microk8s specific stuff is set on the command line instead of
being part of the POM.
This will help make clear what parts need to change when using a
different cluster
2018-11-26 17:36:31 +02:00
Georgios Andrianakis
29bbfedd7b Simplify integration test run 2018-11-26 17:36:31 +02:00
Georgios Andrianakis
9f02f7e753 Add integration tests
These tests are small Spring Cloud Kubernetes application that are
deployed inside a Kubernetes cluster launched with microk8s.
The deployment of the applications is done with the Fabric8 Maven Plugin
2018-11-26 17:36:31 +02:00
tanshanshan
9504dc56ee add local label for pvc (#257) 2018-11-26 09:36:09 -05:00
Toon Borgers
e06049dbf8 Test for toString() 2018-11-22 13:23:44 +02:00
Toon Borgers
d1757a7ecf Custom toString() so that secrets don't get logged 2018-11-22 13:23:44 +02:00
Georgios Andrianakis
601357e030 Add proxy properties for the Kubernetes client configuration (#273)
Fixes: #105
2018-11-22 12:59:28 +02:00
buildmaster
a3d430390f Going back to snapshots 2018-11-18 09:40:23 +00:00
buildmaster
a436c580b5 Update SNAPSHOT to 1.0.0.M2 2018-11-18 09:37:30 +00:00
Spencer Gibb
a277bf1d1b Moves metadata properties to an inner class.
This makes the properties grouped better (rather than in the name)
and easier to read.

properties.getMetadata().isAddLabels() vs
properties.isEnabledAdditionOfLabelsAsMetadata()
2018-11-16 11:16:22 -05:00