Fix spacing issues in YAML files in vnfs
[demo.git] / vnfs / DAaaS / sample-apps / training / sample-spark-app / templates / SampleSparkApp.yaml
1 apiVersion: "sparkoperator.k8s.io/v1beta1"
2 kind: SparkApplication
3 metadata:
4   name: {{ .Values.nameOfTheSparkApp }}
5   namespace: {{ .Release.Namespace }}
6 spec:
7   type: {{ .Values.programmingLanguageType }}
8   mode: {{ .Values.modeOfSparkApp | default "cluster" }}
9   image: {{ quote .Values.image }}
10   imagePullPolicy: {{ .Values.imagePullPolicy | default "IfNotPresent" }}
11   mainClass: {{ .Values.mainClassOfTheSparkApp }}
12   mainApplicationFile: {{ .Values.mainApplicationFileOfTheSparkApp }}
13   arguments:
14         {{- range .Values.argumentsOfTheSparkProgram }}
15    - {{ . }}
16     {{ end }}
17   hadoopConfigMap: {{ .Values.hadoopConfigMap }}
18   restartPolicy:
19     type: {{ .Values.restartPolicy | default "Never" }}
20   volumes:
21     - name: {{ quote .Values.volumesName | default "test-volume" }}
22       hostpath:
23         path: {{ quote .Values.hostpath | default "/tmp" }}
24         type: {{ .Values.hostpathType | default "Directory" }}
25   driver:
26      cores: {{ .Values.driverCores | default 0.1 }}
27      coreLimit: {{ quote .Values.driverCoreLimit | default "200m" }}
28      memory: {{ quote .Values.driverMemory | default "1024m" }}
29      labels:
30        version: 2.4.0
31      serviceAccount: spark
32      volumeMounts:
33        - name: {{ quote .Values.driverVolumeMountsName | default "test-volume" }}
34          mountPath: {{ quote .Values.driverVolumeMountPath | default "/tmp" }}
35   executor:
36     cores: {{ .Values.executorCores | default 1 }}
37     instances: {{ .Values.executorInstances | default 1 }}
38     memory: {{ quote .Values.executorMemory | default "512m" }}
39     labels:
40       version: 2.4.0
41     volumeMounts:
42       - name: {{ quote .Values.executorVolumeMountsName | default "test-volume" }}
43         mountPath: {{ quote .Values.executorVolumeMountPath | default "/tmp" }}