You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/11/06 11:29:18 UTC
[camel] branch camel-2.x updated: CAMEL-14129 -
kubernetesConfiguration.setNamespace is not working,
the namespace was missing in the helper,
by the way the kubernetesHelper should be used only for internal camel
instantiation of the client
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new ca644d3 CAMEL-14129 - kubernetesConfiguration.setNamespace is not working, the namespace was missing in the helper, by the way the kubernetesHelper should be used only for internal camel instantiation of the client
ca644d3 is described below
commit ca644d34843f89396a6cae5aba41d2aeca14d20d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 6 12:22:22 2019 +0100
CAMEL-14129 - kubernetesConfiguration.setNamespace is not working, the namespace was missing in the helper, by the way the kubernetesHelper should be used only for internal camel instantiation of the client
---
.../java/org/apache/camel/component/kubernetes/KubernetesHelper.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/KubernetesHelper.java b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/KubernetesHelper.java
index 267f520..ecbd81d 100644
--- a/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/KubernetesHelper.java
+++ b/components/camel-kubernetes/src/main/java/org/apache/camel/component/kubernetes/KubernetesHelper.java
@@ -93,7 +93,9 @@ public final class KubernetesHelper {
if (ObjectHelper.isNotEmpty(configuration.getConnectionTimeout())) {
builder.withConnectionTimeout(configuration.getConnectionTimeout());
}
-
+ if (ObjectHelper.isNotEmpty(configuration.getNamespace())) {
+ builder.withNamespace(configuration.getNamespace());
+ }
Config conf = builder.build();
return new DefaultKubernetesClient(conf);
}