From 573c92f6684366d06ce768f18a8f6c0019155781 Mon Sep 17 00:00:00 2001 From: yanghua Date: Wed, 8 Feb 2023 20:54:18 +0800 Subject: [PATCH] [Addon #603] Add Apache Spark as a experimental addon Signed-off-by: yanghua --- .../definitions/spark-cluster.cue | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/experimental/addons/spark-kubernetes-operator/definitions/spark-cluster.cue b/experimental/addons/spark-kubernetes-operator/definitions/spark-cluster.cue index 071f738ee..c418b3c0e 100644 --- a/experimental/addons/spark-kubernetes-operator/definitions/spark-cluster.cue +++ b/experimental/addons/spark-kubernetes-operator/definitions/spark-cluster.cue @@ -8,7 +8,9 @@ template: { parameter: { + // +usage=Specify the spark application name name: string + // +usage=Specify the namespace for spark application to install namespace: string type: string mode: string @@ -43,23 +45,23 @@ template: { kind: "SparkApplication" apiVersion: "sparkoperator.k8s.io/v1beta2" metadata: { - name: parameter.name - namespace: parameter.namespace + name: parameter.name + namespace: parameter.namespace } spec: { - type: parameter.type - mode: parameter.mode - image: parameter.image - imagePullPolicy: parameter.imagePullPolicy - mainClass: parameter.mainClass - mainApplicationFile: parameter.mainApplicationFile - sparkVersion: parameter.sparkVersion - driver: { - cores: parameter.driverCores - } - executor: { - cores: parameter.executorCores - } + type: parameter.type + mode: parameter.mode + image: parameter.image + imagePullPolicy: parameter.imagePullPolicy + mainClass: parameter.mainClass + mainApplicationFile: parameter.mainApplicationFile + sparkVersion: parameter.sparkVersion + driver: { + cores: parameter.driverCores + } + executor: { + cores: parameter.executorCores + } } }