pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [pulsar] jerrypeng commented on a change in pull request #4701: Fix: Add kubernetes namespace to function instance url
Date Wed, 10 Jul 2019 17:47:03 GMT
jerrypeng commented on a change in pull request #4701: Fix: Add kubernetes namespace to function
instance url
URL: https://github.com/apache/pulsar/pull/4701#discussion_r302192708
 
 

 ##########
 File path: pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/KubernetesRuntime.java
 ##########
 @@ -993,6 +993,10 @@ private static String createJobName(String tenant, String namespace,
String func
         return "pf-" + tenant + "-" + namespace + "-" + functionName;
     }
 
+    private static String getServiceUrl(String jobName, String jobNamespace, int instanceId)
{
+        return String.format("%s-%d.%s.%s", jobName, instanceId, jobName, jobNamespace);
 
 Review comment:
   That format worked when I tested in minikube

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


With regards,
Apache Git Services

Mime
View raw message