You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/08/21 08:28:54 UTC
[GitHub] [pulsar] freeznet opened a new pull request #4996: [k8s] convert to
valid pod name part with k8s function runtime
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:
users@infra.apache.org
With regards,
Apache Git Services