Skip to content

feat(helm): add volume mounts & cert vars #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
16 changes: 16 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down