Skip to content

Commit

Permalink
Add service account template to graphql-engine (#19)
Browse files Browse the repository at this point in the history
Add service account template to `graphql-engine`
---------

Co-authored-by: Toan Nguyen <[email protected]>
  • Loading branch information
seth-acuitymd and hgiasac authored Apr 10, 2024
1 parent fc2f196 commit cab909c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions charts/graphql-engine/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- $namespace := include "common.namespace" . -}}

{{- if .Values.serviceAccount.enabled -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.serviceAccount.name | default "graphql-engine" }}
namespace: {{ $namespace }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- . | toYaml | nindent 4 }}
{{- end }}
{{- with .Values.serviceAccount.labels }}
labels:
{{- . | toYaml | nindent 4 }}
{{- end }}
{{ end }}
4 changes: 3 additions & 1 deletion charts/graphql-engine/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ healthChecks:
##
serviceAccount:
enabled: false
name: ""
name: graphql-engine
annotations: {}
labels: {}

## Additional annotations
##
Expand Down

0 comments on commit cab909c

Please sign in to comment.