Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c08271

Browse files
authored
Merge pull request #10 from coder/custom-certs
feat(helm): add volume mounts & cert vars
2 parents 2f711e4 + 8dc702b commit 8c08271

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

templates/service.yaml

+14
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

+16
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)