-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-40869][K8S] Resource name prefix should not start with a hyphen #38331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Can one of the admins verify this patch? |
|
@tobiasstadler Could you enable github action and do a rebase according guide? |
3e0c079 to
3c403db
Compare
|
@Yikun Done |
Yikun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Thank you for pinging me, @Yikun . |
| assert(KubernetesConf.getAppNameLabel("-" + "a" * 63) === "a" * 62) | ||
| } | ||
|
|
||
| test("SPARK-40869: KubernetesConf.getResourceNamePrefix creates invalid name prefixes") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test case title is too broad. Shall we match it with the title?
- test("SPARK-40869: KubernetesConf.getResourceNamePrefix creates invalid name prefixes") {
+ test("SPARK-40869: Resource name prefix should not start with a hyphen") {
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM (except a comment about test case name)
|
I updated the test case name and verified manually. Let me merge this |
### What changes were proposed in this pull request? Strip leading - from resource name prefix ### Why are the changes needed? leading - are not allowed for resource name prefix (especially spark.kubernetes.executor.podNamePrefix) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit test Closes #38331 from tobiasstadler/fix-SPARK-40869. Lead-authored-by: Tobias Stadler <[email protected]> Co-authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 7f3b598) Signed-off-by: Dongjoon Hyun <[email protected]>
### What changes were proposed in this pull request? Strip leading - from resource name prefix ### Why are the changes needed? leading - are not allowed for resource name prefix (especially spark.kubernetes.executor.podNamePrefix) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit test Closes #38331 from tobiasstadler/fix-SPARK-40869. Lead-authored-by: Tobias Stadler <[email protected]> Co-authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 7f3b598) Signed-off-by: Dongjoon Hyun <[email protected]>
|
Merged to master/3.3/3.2 for Apache Spark 3.4/3.3.2/3.2.3. Welcome to the Apache Spark community, @tobiasstadler . Thank you again, @tobiasstadler , @srowen , @Yikun . |
|
Thank You! |
### What changes were proposed in this pull request? Strip leading - from resource name prefix ### Why are the changes needed? leading - are not allowed for resource name prefix (especially spark.kubernetes.executor.podNamePrefix) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit test Closes apache#38331 from tobiasstadler/fix-SPARK-40869. Lead-authored-by: Tobias Stadler <[email protected]> Co-authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
### What changes were proposed in this pull request? Strip leading - from resource name prefix ### Why are the changes needed? leading - are not allowed for resource name prefix (especially spark.kubernetes.executor.podNamePrefix) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit test Closes apache#38331 from tobiasstadler/fix-SPARK-40869. Lead-authored-by: Tobias Stadler <[email protected]> Co-authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 7f3b598) Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
Strip leading - from resource name prefix
Why are the changes needed?
leading - are not allowed for resource name prefix (especially spark.kubernetes.executor.podNamePrefix)
Does this PR introduce any user-facing change?
No
How was this patch tested?
Unit test