From 4f532e11a870a2ecfe80d7acff54a7eebeaedc80 Mon Sep 17 00:00:00 2001 From: Thomas Decaux Date: Fri, 25 Mar 2022 12:37:02 +0100 Subject: [PATCH] feat(zeppelin): add extra volumes #5 --- charts/zeppelin/Chart.yaml | 2 +- charts/zeppelin/templates/_container_zeppelin.tpl | 3 +++ charts/zeppelin/templates/deployment.yaml | 3 +++ charts/zeppelin/values.yaml | 13 +++++++++++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/charts/zeppelin/Chart.yaml b/charts/zeppelin/Chart.yaml index 4af5b2c..3b3e687 100644 --- a/charts/zeppelin/Chart.yaml +++ b/charts/zeppelin/Chart.yaml @@ -4,7 +4,7 @@ apiVersion: v2 name: zeppelin description: Apache Zeppelin with Apache Spark type: application -version: 0.3.1 +version: 0.4.0 appVersion: 0.10.0 engine: gotpl home: https://github.com/ebuildy/helm-data-lake diff --git a/charts/zeppelin/templates/_container_zeppelin.tpl b/charts/zeppelin/templates/_container_zeppelin.tpl index f5205df..6b4831b 100644 --- a/charts/zeppelin/templates/_container_zeppelin.tpl +++ b/charts/zeppelin/templates/_container_zeppelin.tpl @@ -88,4 +88,7 @@ volumeMounts: - name: zep-ivy mountPath: /opt/zeppelin/.ivy2 {{- end }} +{{- with .Values.extraVolumeMounts }} +{{ . | toYaml }} +{{- end }} {{- end }} \ No newline at end of file diff --git a/charts/zeppelin/templates/deployment.yaml b/charts/zeppelin/templates/deployment.yaml index 4cad4ee..0b4666e 100644 --- a/charts/zeppelin/templates/deployment.yaml +++ b/charts/zeppelin/templates/deployment.yaml @@ -90,6 +90,9 @@ spec: emptyDir: {} - name: zep-ivy emptyDir: {} + {{- with .Values.extraVolumes }} + {{ . | toYaml | nindent 8 }} + {{- end }} {{- end }} initContainers: - {{- include "zeppelin.container.config" . | nindent 8 }} diff --git a/charts/zeppelin/values.yaml b/charts/zeppelin/values.yaml index 5a70b4b..07b8a6a 100644 --- a/charts/zeppelin/values.yaml +++ b/charts/zeppelin/values.yaml @@ -44,6 +44,19 @@ networkPolicy: # -- add extra NP ingress rules extraIngressRules: [] +# -- extraVolumes Array to add extra volumes +extraVolumes: [] +#- name: toto +# emptyDir: {} + +# -- extraVolumeMounts Array to add extra mount +extraVolumeMounts: [] +#- name: toto +# mountPath: /app/toto + +# -- extra env variables for zeppelin container +extraEnvVars: {} + service: type: ClusterIP # -- HTTP server port