pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] srkukarni closed pull request #3123: Fixed Kubernetes runtime bug
Date Wed, 05 Dec 2018 00:31:48 GMT
srkukarni closed pull request #3123: Fixed Kubernetes runtime bug
URL: https://github.com/apache/pulsar/pull/3123

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/KubernetesRuntime.java
index cd83e69a15..9ae3bfc047 100644
--- a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/KubernetesRuntime.java
+++ b/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/KubernetesRuntime.java
@@ -524,10 +524,9 @@ private V1StatefulSet createStatefulSet() {
     private Map<String, String> getLabels(Function.FunctionDetails functionDetails)
         final Map<String, String> labels = new HashMap<>();
-        labels.put("namespace", String.format("%s/%s",functionDetails.getTenant(), functionDetails.getNamespace()));
+        labels.put("namespace", functionDetails.getNamespace());
         labels.put("tenant", functionDetails.getTenant());
-        labels.put("function", String.format("%s/%s/%s", functionDetails.getTenant(),
-                functionDetails.getNamespace(), functionDetails.getName()));
+        labels.put("function", functionDetails.getName());
         if (customLabels != null && !customLabels.isEmpty()) {


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message