Commit 5a90eed
committed
[SPARK-49831] Provide empty
### What changes were proposed in this pull request?
Like the other fields of `ClusterSpec`, this PR aims to provide at least empty `RuntimeVersions` object to `ClusterSpec.runtimeVersions` field by default.
### Why are the changes needed?
Although `ClusterSpec.runtimeVersions` field is a required field, it's `null` currently by default because this should be provided by the users. However, technically, we can create `RuntimeVersions` object with null fields when we don't know the values of `RuntimeVersion` class fields. By providing this intermediate object by default, we can write a test case more easily in other modules.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs with the updated test case.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes apache#140 from dongjoon-hyun/SPARK-49831.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>RuntimeVersions object to ClusterSpec.runtimeVersions by default1 parent cdad512 commit 5a90eed
File tree
2 files changed
+4
-3
lines changed- spark-operator-api/src
- main/java/org/apache/spark/k8s/operator/spec
- test/java/org/apache/spark/k8s/operator/spec
2 files changed
+4
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments