diff --git a/experimental/addons/spark-kubernetes-operator/template.cue b/experimental/addons/spark-kubernetes-operator/template.cue index d92df04e3..55ac84bd9 100644 --- a/experimental/addons/spark-kubernetes-operator/template.cue +++ b/experimental/addons/spark-kubernetes-operator/template.cue @@ -4,69 +4,69 @@ output: { kind: "Application" spec: { components: [ - { - type: "k8s-objects" - name: "spark-operator-ns" - properties: objects: [{ - apiVersion: "v1" - kind: "Namespace" - metadata: name: parameter.namespace - }] - }, - { - type: "k8s-objects" - name: "spark-cluster-ns" - properties: objects: [{ - apiVersion: "v1" - kind: "Namespace" - metadata: name: "spark-cluster" - }, - { - apiVersion: "v1" - kind: "ServiceAccount" - metadata: { - name: "spark" - namespace: "spark-cluster" - } - }] - }, - { - name: "spark-operator-helm" - type: "helm" - dependsOn: ["spark-operator-ns"] - type: "helm" - properties: { - repoType: "helm" - url: "https://googlecloudplatform.github.io/spark-on-k8s-operator/" - chart: "spark-operator" - targetNamespace: parameter["namespace"] - version: "1.1.26" - values: { - image: { - repository: parameter["imageRepository"] - tag: parameter["imageTag"] - } + { + type: "k8s-objects" + name: "spark-operator-ns" + properties: objects: [{ + apiVersion: "v1" + kind: "Namespace" + metadata: name: parameter.namespace + }] + }, + { + type: "k8s-objects" + name: "spark-cluster-ns" + properties: objects: [{ + apiVersion: "v1" + kind: "Namespace" + metadata: name: "spark-cluster" + }, + { + apiVersion: "v1" + kind: "ServiceAccount" + metadata: { + name: "spark" + namespace: "spark-cluster" + } + }] + }, + { + name: "spark-operator-helm" + type: "helm" + dependsOn: ["spark-operator-ns"] + type: "helm" + properties: { + repoType: "helm" + url: "https://googlecloudplatform.github.io/spark-on-k8s-operator/" + chart: "spark-operator" + targetNamespace: parameter["namespace"] + version: "1.1.26" + values: { + image: { + repository: parameter["imageRepository"] + tag: parameter["imageTag"] + } serviceAccounts: { - spark: { - create: parameter["createSparkServiceAccount"] - } + spark: { + create: parameter["createSparkServiceAccount"] + } } serviceAccounts: { - sparkoperator: { - name: "spark-kubernetes-operator" - } - } + sparkoperator: { + name: "spark-kubernetes-operator" + } + } webhook: { - enable: parameter["createWebhook"] - } - - } - } - }, + enable: parameter["createWebhook"] + } + } + } + }, ] + policies: [ { name: "gc-dependency",