Skip to content

Commit

Permalink
Upgrade to 5.2.0. (fabric8io#71)
Browse files Browse the repository at this point in the history
Upgrade Elasticsearch to versoin 5.2.0.
  • Loading branch information
speedplane authored and pires committed Feb 1, 2017
1 parent 1c39b7d commit 0869c4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Kubernetes Cloud plugin allows to use Kubernetes API for the unicast discove
Installation
============
```
elasticsearch-plugin install io.fabric8:elasticsearch-cloud-kubernetes:5.1.2
elasticsearch-plugin install io.fabric8:elasticsearch-cloud-kubernetes:5.2.0
```

Versions available
Expand Down Expand Up @@ -147,7 +147,7 @@ items:
fieldPath: "metadata.namespace"
- name: "NODE_MASTER"
value: "false"
image: "fabric8/elasticsearch-k8s:5.1.2"
image: "fabric8/elasticsearch-k8s:5.2.0"
name: "elasticsearch"
ports:
- containerPort: 9300
Expand Down Expand Up @@ -189,7 +189,7 @@ items:
fieldPath: "metadata.namespace"
- name: "NODE_DATA"
value: "false"
image: "fabric8/elasticsearch-k8s:5.1.2"
image: "fabric8/elasticsearch-k8s:5.2.0"
name: "elasticsearch"
ports:
- containerPort: 9300
Expand Down Expand Up @@ -225,7 +225,7 @@ items:
value: "false"
- name: "NODE_MASTER"
value: "false"
image: "fabric8/elasticsearch-k8s:5.1.2"
image: "fabric8/elasticsearch-k8s:5.2.0"
name: "elasticsearch"
ports:
- containerPort: 9200
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.fabric8</groupId>
<artifactId>elasticsearch-cloud-kubernetes</artifactId>
<version>5.1.2-SNAPSHOT</version>
<version>5.2.0-SNAPSHOT</version>

<name>Elasticsearch Kubernetes cloud plugin</name>
<description>The Kubernetes Cloud plugin allows to use Kubernetes for the unicast discovery mechanism.</description>
Expand Down Expand Up @@ -54,7 +54,7 @@

<properties>
<elasticsearch.plugin.name>discovery-kubernetes</elasticsearch.plugin.name>
<elasticsearch.version>5.1.2</elasticsearch.version>
<elasticsearch.version>5.2.0</elasticsearch.version>
<kubernetes-client.version>1.4.27</kubernetes-client.version>
<tests.shuffle>true</tests.shuffle>
<tests.output>onerror</tests.output>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.elasticsearch.cluster.service.ClusterService;
import org.elasticsearch.common.logging.DeprecationLogger;
import org.elasticsearch.common.logging.Loggers;
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
import org.elasticsearch.common.network.NetworkService;
import org.elasticsearch.common.settings.Setting;
import org.elasticsearch.common.settings.Settings;
Expand Down Expand Up @@ -66,10 +67,10 @@ public KubernetesDiscoveryPlugin(Settings settings) {

@Override
public Map<String, Supplier<Discovery>> getDiscoveryTypes(ThreadPool threadPool, TransportService transportService,
ClusterService clusterService, UnicastHostsProvider hostsProvider) {
NamedWriteableRegistry namedWriteableRegistry, ClusterService clusterService, UnicastHostsProvider hostsProvider) {
// this is for backcompat with pre 5.1, where users would set discovery.type to use ec2 hosts provider
return Collections.singletonMap(KUBERNETES, () ->
new ZenDiscovery(settings, threadPool, transportService, clusterService, hostsProvider));
new ZenDiscovery(settings, threadPool, transportService, namedWriteableRegistry, clusterService, hostsProvider));
}

@Override
Expand Down

0 comments on commit 0869c4b

Please sign in to comment.