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:30:57 UTC
[camel] branch camel-2.24.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.24.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.24.x by this push:
new 76d8712 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
76d8712 is described below
commit 76d8712f4148115b9eecdc63197b86a9e81e9bf5
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);
}