Skip to content

Commit d41dd39

Browse files
committed
add capability to mount secrets, configmaps, extra PVCs as needed
1 parent fe41b22 commit d41dd39

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

charts/k8s-dev-pod/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: k8s-dev-pod
33
description: A Helm chart for deploying a dev environment inside a K8S cluster that is compatible with Visual Studio Code remote targets
44
type: application
5-
version: 0.1.3
5+
version: 0.1.4
66
appVersion: "0.1.0"

charts/k8s-dev-pod/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ spec:
3131
- name: dropbear
3232
persistentVolumeClaim:
3333
claimName: {{ .Release.Name }}-dropbear
34+
{{- if .Values.volumes }}
35+
{{- toYaml .Values.volumes | nindent 8 }}
36+
{{- end }}
3437
containers:
3538
- name: {{ .Chart.Name }}
3639
securityContext:
@@ -50,6 +53,9 @@ spec:
5053
- name: dropbear
5154
mountPath: /etc/dropbear
5255
readOnly: false
56+
{{- if .Values.volumeMounts }}
57+
{{- toYaml .Values.volumeMounts | nindent 12 }}
58+
{{- end }}
5359
{{- with .Values.nodeSelector }}
5460
nodeSelector:
5561
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)