From d41dd39f3678d68eaef32719f78ccfa3ff51fca1 Mon Sep 17 00:00:00 2001 From: bryopsida <8363252+bryopsida@users.noreply.github.com> Date: Sun, 2 Jan 2022 18:57:16 +0000 Subject: [PATCH] add capability to mount secrets, configmaps, extra PVCs as needed --- charts/k8s-dev-pod/Chart.yaml | 2 +- charts/k8s-dev-pod/templates/deployment.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/k8s-dev-pod/Chart.yaml b/charts/k8s-dev-pod/Chart.yaml index c8a5f09..6e35716 100644 --- a/charts/k8s-dev-pod/Chart.yaml +++ b/charts/k8s-dev-pod/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: k8s-dev-pod description: A Helm chart for deploying a dev environment inside a K8S cluster that is compatible with Visual Studio Code remote targets type: application -version: 0.1.3 +version: 0.1.4 appVersion: "0.1.0" diff --git a/charts/k8s-dev-pod/templates/deployment.yaml b/charts/k8s-dev-pod/templates/deployment.yaml index 45f173d..4e9a7be 100644 --- a/charts/k8s-dev-pod/templates/deployment.yaml +++ b/charts/k8s-dev-pod/templates/deployment.yaml @@ -31,6 +31,9 @@ spec: - name: dropbear persistentVolumeClaim: claimName: {{ .Release.Name }}-dropbear + {{- if .Values.volumes }} + {{- toYaml .Values.volumes | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} securityContext: @@ -50,6 +53,9 @@ spec: - name: dropbear mountPath: /etc/dropbear readOnly: false + {{- if .Values.volumeMounts }} + {{- toYaml .Values.volumeMounts | nindent 12 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }}