| commit | 5ecd3abb477eb38e2f59de8c422e1aa852b6f864 | [log] [tgz] |
|---|---|---|
| author | Dongjoon Hyun <dongjoon@apache.org> | Sat Aug 17 23:09:17 2024 -0700 |
| committer | Dongjoon Hyun <dongjoon@apache.org> | Sat Aug 17 23:09:17 2024 -0700 |
| tree | 902fcbaf275084a1514c49e5bbf13b5c7dded12c | |
| parent | 7b3dc1c77ecaf1309127bdb7d494ef81915bec34 [diff] |
[SPARK-49277] Refactor `RestartPolicyTest` to test per case ### What changes were proposed in this pull request? This aims to refactor `RestartPolicyTest` to test per case. There is no change in terms of test coverage. ### Why are the changes needed? `RestartPolicy` has four enum values. We had better have four test cases. https://github.com/apache/spark-kubernetes-operator/blob/7b3dc1c77ecaf1309127bdb7d494ef81915bec34/spark-operator-api/src/main/java/org/apache/spark/k8s/operator/spec/RestartPolicy.java#L24-L28 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #56 from dongjoon-hyun/SPARK-49277. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Apache Spark K8s Operator is a subproject of Apache Spark and aims to extend K8s resource manager to manage Apache Spark applications via Operator Pattern.
Spark K8s Operator is built using Gradle. To build, run:
$ ./gradlew build -x test
$ ./gradlew build
$ docker build --build-arg APP_VERSION=0.1.0 -t spark-kubernetes-operator:0.1.0 -f build-tools/docker/Dockerfile .
$ ./gradlew spark-operator-api:relocateGeneratedCRD $ helm install spark-kubernetes-operator --create-namespace -f build-tools/helm/spark-kubernetes-operator/values.yaml build-tools/helm/spark-kubernetes-operator/
$ kubectl apply -f examples/pi.yaml $ kubectl get sparkapp NAME CURRENT STATE AGE pi ResourceReleased 4m10s $ kubectl delete sparkapp/pi
Please review the Contribution to Spark guide for information on how to get started contributing to the project.