TMeireOqton opened a new issue #9310:
URL: https://github.com/apache/pulsar/issues/9310


   **Describe the bug**
   When the name of the tenant, namespace and function are long, the generated 
jobname for the kubernetes runtime exceeds 55 characters. Because this is too 
long, the runtime does not create the stateful set and the function doesn't run.
   
   **To Reproduce**
   * Create a tenant `verylongtenantname`
   * Create a new namespace `verylongnamespacename`
   * Deploy a new function to the namespace with name `verylongfunctionname` to 
kubernetes
   * The job fails to deploy because the generated job name 
`pf-verylongtenantname-verylongnamespacename-verylongfunctionname` is longer 
than the 55 character limit of kubernetes.
   
   **Expected behavior**
   The default kubernetes runtime implementation is able to deploy the 
function, regardless of the length of the tenant, namespace, and function name. 
The dev experience isn't really great when the deployment of a new function 
suddenly fails for no obvious reason, while the same function works just fine 
for other tenants because they happen to have a shorter name.
   
   **Additional context**
   It is possible to work around this issue by setting a custom job name with 
the BasicKubernetesManifestCustomizer, but this is not documented anywhere. 
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to