Commit Graph

54 Commits

Author SHA1 Message Date
Olga Maciaszek-Sharma
bb2188b4ed Adjust to changes in commons. 2020-12-10 12:51:06 +01:00
buildmaster
2e2ff80e07 Bumping versions 2020-09-17 17:52:36 +00:00
Mushtaq Ahmed
dad59dea10 Bump cf-java-client to 4.9.0.RELEASE 2020-08-25 16:28:35 +02:00
Spencer Gibb
3c5bf6d70c Removes ribbon references. 2020-01-21 15:55:01 -05:00
Spencer Gibb
383338c56d Renames nested config classes 2020-01-21 15:39:46 -05:00
Spencer Gibb
5f396d3da0 Removes ribbon support 2020-01-17 18:29:47 -05:00
Ryan Baxter
001fc23a47 Adding proxyBeanMethods = false to configuration files. Fixes #62 2019-11-14 16:36:06 -05:00
Tim Ysewyn
bec2a3b292 Added support for reactive service discovery
Fixes gh-57
2019-10-02 16:40:19 +02:00
Olga Maciaszek-Sharma
ac247d985a Fix formatting with spring-javaformat plugin. 2019-05-10 16:11:54 +02:00
Spencer Gibb
b80eab7ced Makes app.internal configurable. 2019-04-29 17:35:54 -04:00
Spencer Gibb
8f7c072391 Checkstyle fixes 2019-04-29 15:13:07 -04:00
Toshiaki Maki
f0ef4f08bf Support DNS based Service Discovery
Adds new two DiscoveryClient implementations that depend on native Service Discovery supported by Cloud Foundry.

CloudFoundryAppServiceDiscoveryClient uses cf-java-client and find container's index-based route (e.g. 0.billing.apps.internal, 1.billing.apps.internal, 2.billing.apps.internal).
SimpleDnsBasedDiscoveryClient simply uses DNS and resolve container's ip (e.g. 10.250.56.12, 10.254.160.118, 10.254.112.192). does not depend on cf-java-client
By default, existing CloudFoundryDiscoveryClient is chosen.
Configuring spring.cloud.cloudfoundry.discovery.use-dns=true enables CloudFoundryAppServiceDiscoveryClient.
Configuring spring.cloud.cloudfoundry.discovery.use-dns=true and spring.cloud.cloudfoundry.discovery.use-container-ip=true enables SimpleDnsBasedDiscoveryClient.

This DiscoveryClient eliminates the limitation of Turbine on Cloud Foundry and does not need Turbine Stream.

In some environments (such as in a PaaS setting), the classic Turbine model of pulling metrics from all the distributed Hystrix commands does not work.

See gh-19
2019-04-29 15:06:11 -04:00
Spencer Gibb
4ba2f07891 Merge branch '2.1.x' 2019-04-01 13:03:06 -04:00
Spencer Gibb
362cfe7ec1 Merge branch '2.0.x' into 2.1.x 2019-04-01 12:52:55 -04:00
Spring Operator
32e77a4866 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* [ ] http://compose.docker.io/ (UnknownHostException) with 1 occurrences migrated to:
  https://compose.docker.io/ ([https](https://compose.docker.io/) result UnknownHostException).
* [ ] http://example.com/oauth/token (404) with 1 occurrences migrated to:
  https://example.com/oauth/token ([https](https://example.com/oauth/token) result 404).
* [ ] http://my-app.cfapps.io (404) with 1 occurrences migrated to:
  https://my-app.cfapps.io ([https](https://my-app.cfapps.io) result 404).
* [ ] http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
  https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd) result 404).

These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/ with 1 occurrences migrated to:
  https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/ ([https](https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/) result 200).
* [ ] http://example.com with 9 occurrences migrated to:
  https://example.com ([https](https://example.com) result 200).
* [ ] http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 2 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) result 200).
* [ ] http://plugins.jetbrains.com/plugin/6546 with 2 occurrences migrated to:
  https://plugins.jetbrains.com/plugin/6546 ([https](https://plugins.jetbrains.com/plugin/6546) result 301).
* [ ] http://eclipse.org with 1 occurrences migrated to:
  https://eclipse.org ([https](https://eclipse.org) result 302).
* [ ] http://eclipse.org/m2e/ with 2 occurrences migrated to:
  https://eclipse.org/m2e/ ([https](https://eclipse.org/m2e/) result 302).
* [ ] http://www.springsource.com/developer/sts with 1 occurrences migrated to:
  https://www.springsource.com/developer/sts ([https](https://www.springsource.com/developer/sts) result 302).
2019-04-01 12:46:18 -04:00
Spring Operator
f1beab8475 URL Cleanup (#41)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success 
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:  
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 25 occurrences migrated to:  
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-04-01 11:34:35 -04:00
Spring Operator
4230336ebc URL Cleanup (#38)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success 
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:  
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 23 occurrences migrated to:  
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-04-01 11:34:02 -04:00
Marcin Grzejszczak
e3eaa72e25 Updated https 2019-03-29 15:16:31 +01:00
buildmaster
47f677d27c Going back to snapshots 2019-03-05 17:34:29 +00:00
buildmaster
15f7144a12 Update SNAPSHOT to 2.1.1.RELEASE 2019-03-05 17:33:19 +00:00
Tim Ysewyn
8c15fc073e Added the instance id to the DefaultServiceInstance (#28)
Should be merged after spring-cloud/spring-cloud-commons#419

NB: Maybe not the best implementation but Cloud Foundry doesn't have the notion of instance ids, only instance indexes.
2019-02-25 15:15:43 -05:00
Marcin Grzejszczak
004e83b1e8 Added checkstyle 2019-02-05 15:21:41 +01:00
Spencer Gibb
65474bf9b2 polish 2018-09-10 13:56:43 -04:00
Olga Maciaszek-Sharma
04ff3bba1a Add license notice and fix formatting. 2018-09-10 09:26:46 +02:00
Olga Maciaszek-Sharma
859d1a0a9e Switch to taking order from CloudFoundryDiscoveryProperties. 2018-09-07 15:50:48 +02:00
OlgaMaciaszek
8fb072505b Rename class. 2018-05-18 16:44:52 +02:00
OlgaMaciaszek
ef5f62133e Adjust changes to existing convention. 2018-05-18 15:52:53 +02:00
OlgaMaciaszek
52b1c75ffc Add default order to CloudFoundryDiscoveryClientConfig. 2018-05-18 14:30:16 +02:00
OlgaMaciaszek
dd007e233c Adjust CloudFoundryDiscoveryClient to DiscoveryClient ordering functionality
in spring-cloud-commons.
2018-05-18 14:23:11 +02:00
Scott Frederick
510b6ebcfc Improve Cloud Foundry Java Client auto-configuration.
An organization and space are not required by all CF Java Client operations. Those properties should be optional to the client-autoconfiguration.

The CF target URL should default to the CF an application is running on when it is deployed to CF.
2018-04-09 17:11:33 -05:00
Spencer Gibb
89b5b3357b Update to new RibbonProperties location 2018-01-09 17:14:37 -05:00
Spencer Gibb
d275b72569 Add or update license headers 2018-01-09 15:21:52 -05:00
Spencer Gibb
d012ddd12e Use ribbon to set port if defined.
Otherwise, use a configurable default.

fixes gh-15
2018-01-09 15:16:17 -05:00
Spencer Gibb
3cb69505e3 polish 2018-01-08 17:08:13 -05:00
Spencer Gibb
caf736214e polish 2018-01-08 17:05:08 -05:00
Spencer Gibb
673679fd00 Formatting 2018-01-08 16:55:33 -05:00
Josh Long
fef7d2c9a7 support Reactor-based CF Java Client (#22)
* reactive Cloud Foundry Java Client

- new support for auto-configuring the reactor-based CF java client v3.3.
- reworkd the `DiscoveryClient` to depend on the standalone support.
- made the tests run conditionally based on presence of certain env vars.

fixes gh-21
2018-01-08 16:45:02 -05:00
Spencer Gibb
048640be21 Update for commons 2.0.0 changes 2017-11-28 11:39:27 -05:00
Dave Syer
529e4d9f93 Update readme script to handle local includes 2016-06-11 09:54:41 +01:00
Dave Syer
2544c8ef15 Add a heartbeat event every 5s by default
Fixes gh-12
2016-05-09 13:02:54 +01:00
Dave Syer
4932bba3fc Add ignored adhoc tests 2016-05-05 10:24:34 +01:00
Dave Syer
42306c1dba Fix test (wrong assumption about exception handling) 2016-05-05 09:59:04 +01:00
Dave Syer
660dabdf9c More detail on credentials for discovery 2016-04-29 13:49:13 +01:00
Dave Syer
611d2f3e65 Make discovery client more robust if there is no connection
The default behaviour is to know nothing if the client can't
connect to the cloud controller.
2016-04-26 09:15:14 +01:00
Dave Syer
8c8d218f71 Switch to @EnableConfigurationProperties to make override predictable 2016-04-24 14:08:11 +01:00
Dave Syer
9c4624389e Tidy up some javadocs and change email->username 2016-04-22 09:49:20 +01:00
Dave Syer
0c3ce308c5 Be more liberal about not having a local instance
If an app is running locally it can still have a local service
instance, so it shouldn't barf if it can't find itself in
the cloud controller.
2016-04-21 17:17:55 +01:00
Dave Syer
b691349d52 Make ribbon dependency more obviously optional 2016-04-18 12:06:53 +01:00
Dave Syer
bdd196bda3 Remove netflix dependencies
There's no need to depend on netflix libraries but the sample was
using Ribbon, so we took that out so that the release can be
independent.
2016-04-18 11:57:29 +01:00
Dave Syer
b3f6bac3e5 Add some docs for config properties 2015-12-30 15:05:46 +00:00