Skip to content

Commit 39b04c4

Browse files
committed
[SPARK-52606] Promote Spark CRDs to v1
### What changes were proposed in this pull request? This PR aims to promote `Spark CRDs` from `v1beta1` to `v1` at Apache Spark K8s Operator `0.5.0`. After finalizing CRDs to `v1`, we are going to start to prepare `Apache Spark K8s Operator 1.0` release. ### Why are the changes needed? To show the maturity of these CRDs according to K8s API versioning. - https://kubernetes.io/docs/reference/using-api/ | Version | Description | | ------- | ----------- | | Alpha | The software is recommended for use only in short-lived testing clusters, <br> due to increased risk of bugs and lack of long-term support | | Beta | The software is not recommended for production uses. <br> The support for a feature will not be dropped, though the details may change. | | Stable | The version name is vX where X is an integer | ### Does this PR introduce _any_ user-facing change? We support all `v1alpha`, `v1beta1`, and `v1` because they are identical. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#261 from dongjoon-hyun/SPARK-52606. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 44ace33 commit 39b04c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+16008
-43
lines changed

build-tools/helm/spark-kubernetes-operator/README.md

Lines changed: 2 additions & 2 deletions

build-tools/helm/spark-kubernetes-operator/crds/sparkapplications.spark.apache.org-v1.yaml

Lines changed: 8677 additions & 0 deletions
Large diffs are not rendered by default.

build-tools/helm/spark-kubernetes-operator/crds/sparkclusters.spark.apache.org-v1.yaml

Lines changed: 7288 additions & 0 deletions
Large diffs are not rendered by default.

build-tools/helm/spark-kubernetes-operator/templates/workload-rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ metadata:
161161
{{- end }}
162162
{{- if $workloadResources.sparkApplicationSentinel.create }}
163163
{{- range $sentinelNs := .Values.workloadResources.sparkApplicationSentinel.sentinelNamespaces.data }}
164-
apiVersion: spark.apache.org/v1beta1
164+
apiVersion: spark.apache.org/v1
165165
kind: SparkApplication
166166
metadata:
167167
name: {{ $workloadResources.sparkApplicationSentinel.name }}

docs/operations.md

Lines changed: 1 addition & 1 deletion

docs/spark_custom_resources.md

Lines changed: 1 addition & 1 deletion

examples/cluster-java21.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
apiVersion: spark.apache.org/v1beta1
15+
apiVersion: spark.apache.org/v1
1616
kind: SparkCluster
1717
metadata:
1818
name: cluster-java21

examples/cluster-on-yunikorn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
apiVersion: spark.apache.org/v1beta1
15+
apiVersion: spark.apache.org/v1
1616
kind: SparkCluster
1717
metadata:
1818
name: cluster-on-yunikorn

examples/cluster-with-hpa-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
apiVersion: spark.apache.org/v1beta1
15+
apiVersion: spark.apache.org/v1
1616
kind: SparkCluster
1717
metadata:
1818
name: cluster-with-hpa-template

examples/cluster-with-hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
apiVersion: spark.apache.org/v1beta1
15+
apiVersion: spark.apache.org/v1
1616
kind: SparkCluster
1717
metadata:
1818
name: cluster-with-hpa

0 commit comments

Comments
 (0)