Skip to content

Commit

Permalink
Fixed typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
pires committed Jan 7, 2015
1 parent 4d45512 commit 2c6211e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/hazelcast/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $ kubectl get endpoints hazelcast -o yaml
apiVersion: v1beta1
creationTimestamp: 2015-01-05T05:51:50Z
endpoints:
- 10.244.1.10:9042
- xxx.xxx.xxx.xxx:5701
id: hazelcast
kind: Endpoints
namespace: default
Expand Down Expand Up @@ -261,15 +261,15 @@ public class HazelcastDiscoveryController implements CommandLineRunner {
public void run(String... args) {
log.info("Asking k8s registry at {}..", getKubeApi());
KubernetesFactory kubernetesFactory = new KubernetesFactory(getKubeApi());
final List<PodSchema> hazelcastPods = retrieveHazelcasPods(
final List<PodSchema> hazelcastPods = retrieveHazelcastPods(
kubernetesFactory.createKubernetes());
log.info("Found {} pods running Hazelcast.", hazelcastPods.size());
if (!hazelcastPods.isEmpty()) {
runHazelcast(hazelcastPods);
}
}
public List<PodSchema> retrieveHazelcasPods(final Kubernetes kubernetes) {
public List<PodSchema> retrieveHazelcastPods(final Kubernetes kubernetes) {
final List<PodSchema> hazelcastPods = new CopyOnWriteArrayList<>();
kubernetes.getPods().getItems().parallelStream().filter(pod -> pod.
getLabels().get(hazelcastPodLabelKey).equals(hazelcastPodLabelValue)).
Expand Down
1 change: 0 additions & 1 deletion examples/hazelcast/hazelcast-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ desiredState:
replicas: 1
replicaSelector:
name: hazelcast
# This is identical to the pod config above
podTemplate:
desiredState:
manifest:
Expand Down

0 comments on commit 2c6211e

Please sign in to comment.