dongjoon-hyun commented on code in PR #38985:
URL: https://github.com/apache/spark/pull/38985#discussion_r1043867948
##########
resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/KubernetesConfSuite.scala:
##########
@@ -241,14 +241,14 @@ class KubernetesConfSuite extends SparkFunSuite {
test("SPARK-36566: get app name label") {
assert(KubernetesConf.getAppNameLabel(" Job+Spark-Pi 2021") ===
"job-spark-pi-2021")
assert(KubernetesConf.getAppNameLabel("a" * 63) === "a" * 63)
- assert(KubernetesConf.getAppNameLabel("a" * 64) === "a" * 63)
- assert(KubernetesConf.getAppNameLabel("a" * 253) === "a" * 63)
+ assert(KubernetesConf.getAppNameLabel("a" * 64) === "a" * 62)
Review Comment:
When `KUBERNETES_DNS_LABEL_NAME_MAX_LENGTH` is 63, why do we need to get
`62`? The previous result looks more correct to me. Could you explain your
rational?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]