freeznet opened a new pull request #4996: [k8s] convert to valid pod name part 
with k8s function runtime
URL: https://github.com/apache/pulsar/pull/4996
 
 
   ### Motivation
   
   k8s runtime use tenant, namespace, functionName to create k8s pod name, but 
functionName might not meet the k8s pod name rule. 
`"[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*"`, which 
will cause pod create failed.
   
   ### Modifications
   
   This PR create a new function called `toValidPodName` which convert a string 
to valid pod name part, including convert to lower case and replace all 
non-char part to "-".
   
   

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to