Skip to content

helm: add certs secret mount #4641

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 15 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
helm: add certs secret mount
  • Loading branch information
ericpaulsen committed Oct 19, 2022
commit e0eb5d20f16bb7e23806e4f0d9ad5e2bb7ae39b3
10 changes: 10 additions & 0 deletions helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ volumes:
secret:
secretName: {{ .Values.coder.tls.secretName | quote }}
{{- end }}
{{- if .Values.certs.secret.name }}
- name: {{ .Values.certs.secret.name | quote }}
secret:
secretName: {{ .Values.certs.secret.name | quote }}
{{- end }}
{{- else }}
volumes: {{ if and (not .Values.coder.tls.secretNames) (not .Values.coder.tls.secretName) }}[]{{ end }}
{{- end }}
Expand All @@ -119,6 +124,11 @@ volumeMounts:
mountPath: "/etc/ssl/certs/coder/{{ .Values.coder.tls.secretName }}"
readOnly: true
{{- end }}
{{- if .Values.certs.secret.name }}
- name: {{ .Values.coder.certs.secret.name | quote }}
mountPath: /etc/ssl/certs/{{ .Values.certs.secret.key }}
subPath: {{ .Values.certs.secret.key | quote }}
readOnly: true
{{- else }}
volumeMounts: []
{{- end }}
Expand Down
10 changes: 10 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ coder:
# It is recommended to keep this on if you are using Kubernetes templates
# within Coder.
workspacePerms: true
# coder.serviceAccount.annotations -- The Coder service account annotations.


# coder.env -- The environment variables to set for Coder. These can be used
# to configure all aspects of `coder server`. Please see `coder server --help`
Expand Down Expand Up @@ -68,6 +70,14 @@ coder:
# cpu: 100m
# memory: 128Mi

# coder.certs -- Certificate to mount inside the Coder pod (e.g. CA bundle).
certs:
secret:
# coder.certs.secret.name -- Name of the secret.
name: ""
# coder.certs.secret.key -- Key pointing to a certificate in the secret.
key: ""

# coder.service -- The Service object to expose for Coder.
service:
# coder.service.enable -- Whether to create the Service object.
Expand Down