Skip to content

Commit

Permalink
feat(hydra): extra volumes (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
trecloux authored Sep 12, 2020
1 parent 4f38792 commit 1f1d06e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions helm/charts/hydra/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ spec:
- name: {{ include "hydra.name" . }}-config-volume
mountPath: /etc/config
readOnly: true
{{- if .Values.deployment.extraVolumeMounts }}
{{ toYaml .Values.deployment.extraVolumeMounts | indent 12 }}
{{- end }}
env:
- name: DSN
valueFrom:
Expand All @@ -58,6 +61,10 @@ spec:
- name: {{ include "hydra.name" . }}-config-volume
configMap:
name: {{ include "hydra.fullname" . }}
{{- if .Values.deployment.extraVolumes }}
{{ toYaml .Values.deployment.extraVolumes | indent 8 }}
{{- end }}

{{- if .Values.deployment.serviceAccountName }}
serviceAccountName: {{ .Values.deployment.serviceAccountName }}
{{- end }}
Expand All @@ -70,6 +77,9 @@ spec:
- name: {{ include "hydra.name" . }}-config-volume
mountPath: /etc/config
readOnly: true
{{- if .Values.deployment.extraVolumeMounts }}
{{ toYaml .Values.deployment.extraVolumeMounts | indent 12 }}
{{- end }}
args: [
"serve",
"all",
Expand Down
14 changes: 14 additions & 0 deletions helm/charts/hydra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@ deployment:
## Uncoment if it is needed to provide a ServiceAccount for the Hydra deployment.
# serviceAccountName:

extraVolumes: []
extraVolumeMounts: []
# If yout want to mount external volume
# For example, mount a secret containing Certificate root CA to verify database
# TLS connection.
# extraVolumes:
# - name: postgresql-tls
# secret:
# secretName: postgresql-root-ca
# extraVolumeMounts:
# - name: postgresql-tls
# mountPath: "/etc/postgresql-tls"
# readOnly: true

# Configure node affinity
affinity: {}

Expand Down

0 comments on commit 1f1d06e

Please sign in to comment.