From 8dc702b50a6e8c51a3c861e5a0074cd31cf6a638 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 26 Jul 2023 18:59:11 +0000 Subject: [PATCH] feat(helm): add volume mounts & cert vars --- templates/service.yaml | 14 ++++++++++++++ values.yaml | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/templates/service.yaml b/templates/service.yaml index b215cbb..fa3a384 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -61,3 +61,17 @@ spec: value: {{ .Values.url }} - name: CODER_NAMESPACE value: {{ .Values.namespace | default .Release.Namespace }} + {{- if .Values.image.sslCertFile }} + - name: SSL_CERT_FILE + value: {{ .Values.image.sslCertFile }} + {{- end }} + {{- if .Values.image.sslCertDir }} + - name: SSL_CERT_DIR + value: {{ .Values.image.sslCertDir }} + {{- end }} + {{- if .Values.volumeMounts }} + volumeMounts: {{- toYaml .Values.volumeMounts | nindent 12 }} + {{- end }} + {{- if .Values.volumes }} + volumes: {{- toYaml .Values.volumes | nindent 8 }} + {{- end }} diff --git a/values.yaml b/values.yaml index b94fd42..bd7cbc5 100644 --- a/values.yaml +++ b/values.yaml @@ -5,6 +5,16 @@ url: "" # If unspecified, this defaults to the Helm namespace. namespace: "" +# volumes -- A list of extra volumes to add to the coder-logstream pod. +volumes: + # emptyDir: {} + # - name: "my-volume" + +# volumeMounts -- A list of extra volume mounts to add to the coder-logstream pod. +volumeMounts: + # - name: "my-volume" + # mountPath: "/mnt/my-volume" + # image -- The image to use. image: # image.repo -- The repository of the image. @@ -21,6 +31,12 @@ image: # a private registry. pullSecrets: [] # - name: "pull-secret" + # image.sslCertFile -- Location of the SSL certificate file. Sets the $SSL_CERT_FILE + # variable inside of the container. + sslCertFile: "" + # image.sslCertDir -- Directory to check for SSL certificate files. Sets the $SSL_CERT_DIR + # variable inside of the container. + sslCertDir: "" serviceAccount: # serviceAccount.annotations -- The service account annotations.