This is an automated email from the ASF dual-hosted git repository. penghui pushed a commit to branch branch-2.7 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit f20e513c910e80561f3eb2d29887ddc51566138c Author: Chris Bartholomew <c_bartholo...@yahoo.com> AuthorDate: Fri May 14 21:57:02 2021 -0400 Reduce function name size to 53 for k8s runtime (#10531) (cherry picked from commit 74c0c3157a4df06e91ce2ccc5bdd315c89db328a) --- .../apache/pulsar/functions/runtime/kubernetes/KubernetesRuntime.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/kubernetes/KubernetesRuntime.java b/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/kubernetes/KubernetesRuntime.java index ed36a66..dc50835 100644 --- a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/kubernetes/KubernetesRuntime.java +++ b/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/kubernetes/KubernetesRuntime.java @@ -107,7 +107,7 @@ import static org.apache.pulsar.functions.utils.FunctionCommon.roundDecimal; public class KubernetesRuntime implements Runtime { private static final String ENV_SHARD_ID = "SHARD_ID"; - private static final int maxJobNameSize = 55; + private static final int maxJobNameSize = 53; private static final int maxLabelSize = 63; public static final Pattern VALID_POD_NAME_REGEX = Pattern.compile("[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*",