diff options
author | Rajamohan Raj <rajamohan.raj@intel.com> | 2019-04-20 00:54:45 +0000 |
---|---|---|
committer | Rajamohan Raj <rajamohan.raj@intel.com> | 2019-04-20 00:56:28 +0000 |
commit | 2fd13e2728c1b2e1c290ff2df32b6420d1f1c45f (patch) | |
tree | 24fa5890c1eb3d0308dedde987c813d4ab275409 /vnfs/DAaaS/applications/charts/sample-spark-app/templates | |
parent | aa92ee02641b8f24615736130fa2d7d63abd9934 (diff) |
Fixing some helm lint issues.
Change-Id: I6d62bcd10c60c422aaeb146078aee1b162838926
Issue-ID: ONAPARC-450
Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com>
Diffstat (limited to 'vnfs/DAaaS/applications/charts/sample-spark-app/templates')
-rw-r--r-- | vnfs/DAaaS/applications/charts/sample-spark-app/templates/SampleSparkApp.yaml | 43 | ||||
-rw-r--r-- | vnfs/DAaaS/applications/charts/sample-spark-app/templates/_helpers.tpl | 32 |
2 files changed, 0 insertions, 75 deletions
diff --git a/vnfs/DAaaS/applications/charts/sample-spark-app/templates/SampleSparkApp.yaml b/vnfs/DAaaS/applications/charts/sample-spark-app/templates/SampleSparkApp.yaml deleted file mode 100644 index f728f82e..00000000 --- a/vnfs/DAaaS/applications/charts/sample-spark-app/templates/SampleSparkApp.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: "sparkoperator.k8s.io/v1beta1" -kind: SparkApplication -metadata: - name: {{ .Values.nameOfTheSparkApp }} - namespace: {{ .Release.Namespace }} -spec: - type: {{ .Values.programmingLanguageType }} - mode: {{ .Values.modeOfSparkApp | default "cluster" }} - image: {{ quote .Values.image }} - imagePullPolicy: {{ .Values.imagePullPolicy | default "IfNotPresent" }} - mainClass: {{ .Values.mainClassOfTheSparkApp }} - mainApplicationFile: {{ .Values.mainApplicationFileOfTheSparkApp }} - arguments: - {{- range .Values.argumentsOfTheSparkProgram }} - - {{ . }} - {{ end }} - hadoopConfigMap: {{ .Values.hadoopConfigMap }} - restartPolicy: - type: {{ .Values.restartPolicy | default "Never" }} - volumes: - - name: {{ quote .Values.volumesName | default "test-volume" }} - hostpath: - path: {{ quote .Values.hostpath | default "/tmp" }} - type: {{ .Values.hostpathType | default "Directory" }} - driver: - cores: {{ .Values.driverCores | default 0.1 }} - coreLimit: {{ quote .Values.driverCoreLimit | default "200m" }} - memory: {{ quote .Values.driverMemory | default "1024m" }} - labels: - version: 2.4.0 - serviceAccount: spark - volumeMounts: - - name: {{ quote .Values.driverVolumeMountsName | default "test-volume" }} - mountPath: {{ quote .Values.driverVolumeMountPath | default "/tmp" }} - executor: - cores: {{ .Values.executorCores | default 1 }} - instances: {{ .Values.executorInstances | default 1 }} - memory: {{ quote .Values.executorMemory | default "512m" }} - labels: - version: 2.4.0 - volumeMounts: - - name: {{ quote .Values.executorVolumeMountsName | default "test-volume" }} - mountPath: {{ quote .Values.executorVolumeMountPath | default "/tmp" }} diff --git a/vnfs/DAaaS/applications/charts/sample-spark-app/templates/_helpers.tpl b/vnfs/DAaaS/applications/charts/sample-spark-app/templates/_helpers.tpl deleted file mode 100644 index 6f51811d..00000000 --- a/vnfs/DAaaS/applications/charts/sample-spark-app/templates/_helpers.tpl +++ /dev/null @@ -1,32 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "sample-spark-app.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "sample-spark-app.fullname" -}} -{{- if .Values.fullnameOverride -}} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if contains $name .Release.Name -}} -{{- .Release.Name | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "sample-spark-app.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} |