CAMEL-9683: Kubernetes can lookup service using client,env or dns.

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/1f58e587
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/1f58e587
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/1f58e587

Branch: refs/heads/remoteServiceCall
Commit: 1f58e587658824e67eed40d296265dffbcc0126e
Parents: 3f61efc
Author: Claus Ibsen <davscl...@apache.org>
Authored: Wed May 18 15:02:32 2016 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Mon May 23 09:27:51 2016 +0200

----------------------------------------------------------------------
 .../camel/model/remote/KubernetesConfigurationDefinition.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/1f58e587/camel-core/src/main/java/org/apache/camel/model/remote/KubernetesConfigurationDefinition.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/model/remote/KubernetesConfigurationDefinition.java
 
b/camel-core/src/main/java/org/apache/camel/model/remote/KubernetesConfigurationDefinition.java
index 91a11a0..445fd4f 100644
--- 
a/camel-core/src/main/java/org/apache/camel/model/remote/KubernetesConfigurationDefinition.java
+++ 
b/camel-core/src/main/java/org/apache/camel/model/remote/KubernetesConfigurationDefinition.java
@@ -38,7 +38,7 @@ public class KubernetesConfigurationDefinition extends 
ServiceCallConfigurationD
     private String namespace;
     @XmlAttribute
     private String apiVersion;
-    @XmlAttribute @Metadata(defaultValue = "dns")
+    @XmlAttribute @Metadata(defaultValue = "environment")
     private String lookup;
     @XmlAttribute
     private String dnsDomain;
@@ -243,14 +243,15 @@ public class KubernetesConfigurationDefinition extends 
ServiceCallConfigurationD
 
     /**
      * How to perform service lookup. Possible values: client, dns, 
environment.
-     * When using dns the service name is resolved as 
<tt>name.namespace.service.dnsDomain</tt>.
      * <p/>
      * When using client, then the client queries the kubernetes master to 
obtain a list
      * of active pods that provides the service, and then random (or round 
robin) select a pod.
      * <p/>
+     * When using dns the service name is resolved as 
<tt>name.namespace.service.dnsDomain</tt>.
+     * <p/>
      * When using environment then environment variables are used to lookup 
the service.
      * <p/>
-     * By default dns is used.
+     * By default environment is used.
      */
     public KubernetesConfigurationDefinition lookup(String lookup) {
         setLookup(lookup);

Reply via email to