You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2026/09/04 07:45:57 UTC

(spark-kubernetes-operator) branch main updated: [SPARK-59246] Remove `pi-v1beta1.yaml` example

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 92a6f0b  [SPARK-59246] Remove `pi-v1beta1.yaml` example
92a6f0b is described below

commit 92a6f0bced7bf91026c530727265ff8775b49aae
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Fri Sep 4 00:45:49 2026 -0700

    [SPARK-59246] Remove `pi-v1beta1.yaml` example
    
    ### What changes were proposed in this pull request?
    
    This PR aims to remove `examples/pi-v1beta1.yaml`.
    
    ### Why are the changes needed?
    
    `examples/pi-v1beta1.yaml` was added by SPARK-52607 right after the CRDs were promoted to `v1` (SPARK-52606, `0.5.0`) to demonstrate backward compatibility. It is identical to `examples/pi.yaml` except for `apiVersion` and `metadata.name`.
    
    Since Apache Spark K8s Operator `1.0.0` has been released with `v1` as the stable API, the `examples/` directory should show only the recommended `v1` usage. `v1beta1` is a legacy version kept only for migration and is not mentioned anywhere in the documentation. Nothing in the repository (docs, `tests/e2e`, `tests/benchmark`, CI) references this file.
    
    This follows the precedent of SPARK-56851 which removed `examples/pi-v1alpha1.yaml`.
    
    Note that this PR does not change the CRDs. `v1beta1` is still served.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No. This only removes an example file. Users can still apply `spark.apache.org/v1beta1` resources.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Fable 5.1
    
    Closes #810 from dongjoon-hyun/SPARK-59246.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 examples/pi-v1beta1.yaml | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/examples/pi-v1beta1.yaml b/examples/pi-v1beta1.yaml
deleted file mode 100644
index 55c8b8a..0000000
--- a/examples/pi-v1beta1.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-apiVersion: spark.apache.org/v1beta1
-kind: SparkApplication
-metadata:
-  name: pi-v1beta1
-spec:
-  mainClass: "org.apache.spark.examples.SparkPi"
-  jars: "local:///opt/spark/examples/jars/spark-examples.jar"
-  sparkConf:
-    spark.kubernetes.authenticate.driver.serviceAccountName: "spark"
-    spark.kubernetes.container.image: "apache/spark:{{SPARK_VERSION}}-scala"
-  runtimeVersions:
-    sparkVersion: "4.2.0"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org