diff --git a/experimental/addons/spark-kubernetes-operator/definitions/spark-application.cue b/experimental/addons/spark-kubernetes-operator/definitions/spark-application.cue index b3f05c3a5..44b786b4f 100644 --- a/experimental/addons/spark-kubernetes-operator/definitions/spark-application.cue +++ b/experimental/addons/spark-kubernetes-operator/definitions/spark-application.cue @@ -45,47 +45,46 @@ template: { } - output: { - kind: "ClusterRoleBinding" - apiVersion: "rbac.authorization.k8s.io/v1" - metadata: name: parameter.name - roleRef: { - name: "edit" - apiGroup: "rbac.authorization.k8s.io" - kind: "ClusterRole" - } - subjects: [{ - name: "default" - kind: "ServiceAccount" - namespace: parameter.namespace - }] + output: { + kind: "ClusterRoleBinding" + apiVersion: "rbac.authorization.k8s.io/v1" + metadata: name: parameter.name + roleRef: { + name: "edit" + apiGroup: "rbac.authorization.k8s.io" + kind: "ClusterRole" } + subjects: [{ + name: "default" + kind: "ServiceAccount" + namespace: parameter.namespace + }] + } outputs: { "spark": { kind: "SparkApplication" - apiVersion: "sparkoperator.k8s.io/v1beta2" + 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 + } } } - } }