Skip to content

Commit dcf6c20

Browse files
feat: add coder.volumes parameter to Helm chart (#5551)
Co-authored-by: Dean Sheather <dean@deansheather.com>
1 parent 66fa2a1 commit dcf6c20

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

helm/templates/_helpers.tpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ Coder volume definitions.
9595
secret:
9696
secretName: {{ $secret.name | quote }}
9797
{{ end -}}
98+
{{ if gt (len .Values.coder.volumes) 0 -}}
99+
{{ toYaml .Values.coder.volumes }}
100+
{{ end -}}
98101
{{- end }}
99102

100103
{{/*
@@ -124,6 +127,9 @@ Coder volume mounts.
124127
subPath: {{ $secret.key | quote }}
125128
readOnly: true
126129
{{ end -}}
130+
{{ if gt (len .Values.coder.volumeMounts) 0 -}}
131+
{{ toYaml .Values.coder.volumeMounts }}
132+
{{ end -}}
127133
{{- end }}
128134

129135
{{/*

helm/values.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,24 @@ coder:
5252
# - CODER_TLS_KEY_FILE: set if tls.secretName is not empty.
5353
# - CODER_PROMETHEUS_ADDRESS: set to 0.0.0.0:6060 and cannot be changed.
5454
# Prometheus must still be enabled by setting CODER_PROMETHEUS_ENABLE.
55+
# - KUBE_POD_IP
56+
# - CODER_DERP_SERVER_RELAY_URL
57+
#
58+
# We will additionally set CODER_ACCESS_URL if unset to the cluster service
59+
# URL.
5560
env: []
61+
# - name: "CODER_ACCESS_URL"
62+
# value: "https://coder.example.com"
63+
64+
# coder.volumes -- A list of extra volumes to add to the Coder pod.
65+
volumes: []
66+
# - name: "my-volume"
67+
# emptyDir: {}
68+
69+
# coder.volumeMounts -- A list of extra volume mounts to add to the Coder pod.
70+
volumeMounts: []
71+
# - name: "my-volume"
72+
# mountPath: "/mnt/my-volume"
5673

5774
# coder.tls -- The TLS configuration for Coder.
5875
tls:

0 commit comments

Comments
 (0)