Skip to content

Commit 8dc702b

Browse files
committed
feat(helm): add volume mounts & cert vars
1 parent 2f711e4 commit 8dc702b

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

templates/service.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,17 @@ spec:
6161
value: {{ .Values.url }}
6262
- name: CODER_NAMESPACE
6363
value: {{ .Values.namespace | default .Release.Namespace }}
64+
{{- if .Values.image.sslCertFile }}
65+
- name: SSL_CERT_FILE
66+
value: {{ .Values.image.sslCertFile }}
67+
{{- end }}
68+
{{- if .Values.image.sslCertDir }}
69+
- name: SSL_CERT_DIR
70+
value: {{ .Values.image.sslCertDir }}
71+
{{- end }}
72+
{{- if .Values.volumeMounts }}
73+
volumeMounts: {{- toYaml .Values.volumeMounts | nindent 12 }}
74+
{{- end }}
75+
{{- if .Values.volumes }}
76+
volumes: {{- toYaml .Values.volumes | nindent 8 }}
77+
{{- end }}

values.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ url: ""
55
# If unspecified, this defaults to the Helm namespace.
66
namespace: ""
77

8+
# volumes -- A list of extra volumes to add to the coder-logstream pod.
9+
volumes:
10+
# emptyDir: {}
11+
# - name: "my-volume"
12+
13+
# volumeMounts -- A list of extra volume mounts to add to the coder-logstream pod.
14+
volumeMounts:
15+
# - name: "my-volume"
16+
# mountPath: "/mnt/my-volume"
17+
818
# image -- The image to use.
919
image:
1020
# image.repo -- The repository of the image.
@@ -21,6 +31,12 @@ image:
2131
# a private registry.
2232
pullSecrets: []
2333
# - name: "pull-secret"
34+
# image.sslCertFile -- Location of the SSL certificate file. Sets the $SSL_CERT_FILE
35+
# variable inside of the container.
36+
sslCertFile: ""
37+
# image.sslCertDir -- Directory to check for SSL certificate files. Sets the $SSL_CERT_DIR
38+
# variable inside of the container.
39+
sslCertDir: ""
2440

2541
serviceAccount:
2642
# serviceAccount.annotations -- The service account annotations.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy