Commit 7f3b598
[SPARK-40869][K8S] Resource name prefix should not start with a hyphen
### 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]>1 parent 67d0dc8 commit 7f3b598
File tree
2 files changed
+5
-0
lines changed- resource-managers/kubernetes/core/src
- main/scala/org/apache/spark/deploy/k8s
- test/scala/org/apache/spark/deploy/k8s
2 files changed
+5
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
253 | 257 | | |
0 commit comments