Skip to content

Commit

Permalink
helm: Allow specification of service account in ORY Hydra (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
venturasr authored and aeneasr committed Oct 23, 2019
1 parent 732d6b4 commit fad65ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 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
configMap:
name: {{ include "hydra.fullname" . }}
{{- if .Values.deployment.serviceAccountName }}
serviceAccountName: {{ .Values.deployment.serviceAccountName }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
6 changes: 6 additions & 0 deletions helm/charts/hydra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ deployment:
# Configure node tolerations.
tolerations: []

## Specify the serviceAccountName value.
## In some situations it is needed to provides specific permissions to Hydra deployments
## Like for example installing Hydra on a cluster with a PosSecurityPolicy and Istio.
## Uncoment if it is needed to provide a ServiceAccount for the Hydra deployment.
# serviceAccountName:

# Configure node affinity
affinity: {}

Expand Down

0 comments on commit fad65ce

Please sign in to comment.