Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-38537][K8S] Unify
Statefulset*
to StatefulSet*
### What changes were proposed in this pull request? K8s has [StatefulSet](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/) and Apache Spark is currently using both `Statefulset*` and `StatefulSet*`. The worst case is a mixed case like `class StatefulSetAllocatorSuite` in `StatefulsetAllocatorSuite.scala`. This PR aims to unify them to a K8s original name, `StatefulSet`. https://github.com/apache/spark/blob/c032928515e74367137c668ce692d8fd53696485/resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/StatefulsetAllocatorSuite.scala#L39 To sum up, two files are renamed and five files are changed. ``` $ git diff master --stat resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/AbstractPodsAllocator.scala | 5 ++--- resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/KubernetesClusterManager.scala | 2 +- resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/{StatefulsetPodsAllocator.scala => StatefulSetPodsAllocator.scala} | 2 +- resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/KubernetesClusterManagerSuite.scala | 4 ++-- resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/{StatefulsetAllocatorSuite.scala => StatefulSetAllocatorSuite.scala} | 4 ++-- 5 files changed, 8 insertions(+), 9 deletions(-) ``` ### Why are the changes needed? To be consistent not only inside Apache Spark, but also with K8s. ### Does this PR introduce _any_ user-facing change? No. This is a new code in Apache Spark 3.3. ### How was this patch tested? Pass the CIs. Closes apache#35827 from dongjoon-hyun/SPARK-38537. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
- Loading branch information