This is an automated email from the ASF dual-hosted git repository.

dongjoon-hyun 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 99d746c8 [SPARK-59939] Deprecate `v1beta1` version of SparkApp and 
SparkCluster CRDs
99d746c8 is described below

commit 99d746c861f1eba6de3b38166dd3c320584fd495
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Fri Oct 2 01:23:44 2026 -0700

    [SPARK-59939] Deprecate `v1beta1` version of SparkApp and SparkCluster CRDs
    
    ### What changes were proposed in this pull request?
    
    This PR marks the `v1beta1` version of the `SparkApplication` and 
`SparkCluster` CRDs as deprecated by adding `deprecated: true` to the Helm 
chart CRDs, and adds an item to `docs/migration_guide.md`. `v1beta1` stays 
served, and `v1` stays the storage version.
    
    ### Why are the changes needed?
    
    `v1` is available since 
[0.5.0](https://github.com/apache/spark-kubernetes-operator/releases/tag/0.5.0) 
(2025-09-27), but the `v1beta1` schema in the chart is a static snapshot which 
is no longer updated, e.g. it lacks `spec.suspend`. To remove `v1beta1` in 
2.0.0, users need a deprecation period first.
    
    ### Does this PR introduce _any_ user-facing change?
    
    Yes, compared to the released 1.0.0. `kubectl` prints a deprecation warning 
for `apiVersion: spark.apache.org/v1beta1`. Existing resources keep working.
    
    ### How was this patch tested?
    
    Passed `helm lint --strict` and `gradle 
:spark-operator-api:assertGeneratedCRDMatchesHelmChart`.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Sonnet 5.5
    
    Closes #924 from dongjoon-hyun/SPARK-59939.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .../crds/sparkapplications.spark.apache.org-v1.yaml                     | 1 +
 .../crds/sparkclusters.spark.apache.org-v1.yaml                         | 1 +
 docs/migration_guide.md                                                 | 2 ++
 3 files changed, 4 insertions(+)

diff --git 
a/build-tools/helm/spark-kubernetes-operator/crds/sparkapplications.spark.apache.org-v1.yaml
 
b/build-tools/helm/spark-kubernetes-operator/crds/sparkapplications.spark.apache.org-v1.yaml
index b46b8e70..f8b5aaf1 100644
--- 
a/build-tools/helm/spark-kubernetes-operator/crds/sparkapplications.spark.apache.org-v1.yaml
+++ 
b/build-tools/helm/spark-kubernetes-operator/crds/sparkapplications.spark.apache.org-v1.yaml
@@ -28,6 +28,7 @@ spec:
   scope: Namespaced
   versions:
     - name: v1beta1
+      deprecated: true
       schema:
         openAPIV3Schema:
           properties:
diff --git 
a/build-tools/helm/spark-kubernetes-operator/crds/sparkclusters.spark.apache.org-v1.yaml
 
b/build-tools/helm/spark-kubernetes-operator/crds/sparkclusters.spark.apache.org-v1.yaml
index a3f2a23e..e2ccacca 100644
--- 
a/build-tools/helm/spark-kubernetes-operator/crds/sparkclusters.spark.apache.org-v1.yaml
+++ 
b/build-tools/helm/spark-kubernetes-operator/crds/sparkclusters.spark.apache.org-v1.yaml
@@ -28,6 +28,7 @@ spec:
   scope: Namespaced
   versions:
     - name: v1beta1
+      deprecated: true
       schema:
         openAPIV3Schema:
           properties:
diff --git a/docs/migration_guide.md b/docs/migration_guide.md
index 4c1495bd..465f01f3 100644
--- a/docs/migration_guide.md
+++ b/docs/migration_guide.md
@@ -30,6 +30,8 @@ affect building the project, CI, tests or examples.
 
 ### Kubernetes and CRDs
 
+- Since 1.1.0, `spark.apache.org/v1beta1` of the CRDs is deprecated and 
scheduled for removal in
+  2.0.0. Its schema is no longer updated, e.g. it lacks `spec.suspend`. Use 
`spark.apache.org/v1`.
 - Since 1.1.0, K8s 1.35 or newer is recommended instead of 1.34 
([SPARK-59692](https://issues.apache.org/jira/browse/SPARK-59692)).
 - Since 1.1.0, the CRDs have `spec.suspend` for `SparkApplication` and 
`SparkCluster`, and the
   `Suspended` state for `SparkCluster`. Since `helm upgrade` does not update 
CRDs, replace them


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to