This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new f05de22 [SPARK-49315] Generalize `relocateGeneratedCRD` Gradle Task
to handle `*.spark.apache.org-v1.yml`
f05de22 is described below
commit f05de223662dedf5f645a828dea10c72a8ec9d55
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Mon Aug 19 20:53:47 2024 -0700
[SPARK-49315] Generalize `relocateGeneratedCRD` Gradle Task to handle
`*.spark.apache.org-v1.yml`
### What changes were proposed in this pull request?
This PR aims to generalize `relocateGeneratedCRD` Gradle Task to handle
`*.spark.apache.org-v1.yml`.
### Why are the changes needed?
To support the future CRDs generally.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs for now.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #72 from dongjoon-hyun/SPARK-49315.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
spark-operator-api/build.gradle | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/spark-operator-api/build.gradle b/spark-operator-api/build.gradle
index 1edba3a..55657c0 100644
--- a/spark-operator-api/build.gradle
+++ b/spark-operator-api/build.gradle
@@ -52,7 +52,8 @@ tasks.register('finalizeGeneratedCRD', Exec) {
// Copy generated yaml to Helm charts
tasks.register('relocateGeneratedCRD', Copy) {
dependsOn finalizeGeneratedCRD
- from
"build/classes/java/main/META-INF/fabric8/sparkapplications.spark.apache.org-v1.yml"
+ from "build/classes/java/main/META-INF/fabric8/"
+ include "*.spark.apache.org-v1.yml"
into "../build-tools/helm/spark-kubernetes-operator/crds"
rename '(.+).yml', '$1.yaml'
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]