Skip to content

Commit

Permalink
fix(authentik): add option to set serviceaccount
Browse files Browse the repository at this point in the history
  • Loading branch information
WrenIX committed Mar 13, 2024
1 parent 8e3b036 commit 02601ca
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/authentik/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
apiVersion: v2
version: 2024.2.2
version: 2024.2.3
appVersion: 2024.2.2
name: authentik
description: authentik is an open-source Identity Provider focused on flexibility and versatility
Expand Down
3 changes: 3 additions & 0 deletions charts/authentik/templates/server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.server.serviceAccount }}
serviceAccountName: {{ . }}
{{- end }}
{{- with .Values.global.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/authentik/templates/worker/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spec:
{{- end }}
{{- if .Values.serviceAccount.create }}
serviceAccountName: {{ include "authentik-remote-cluster.fullname" .Subcharts.serviceAccount }}
{{- else }}
{{- with .Values.server.serviceAccount }}
serviceAccountName: {{ . }}
{{- end }}
{{- end }}
{{- with .Values.global.hostAliases }}
hostAliases:
Expand Down
6 changes: 6 additions & 0 deletions charts/authentik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ server:
# -- Alternative DNS policy for authentik server pods
dnsPolicy: ""

# -- serviceAccount for usage of server pods
serviceAccount:

# -- authentik server pod-level security context
# @default -- `{}` (See [values.yaml])
securityContext: {}
Expand Down Expand Up @@ -746,6 +749,9 @@ worker:
# -- Alternative DNS policy for authentik worker pods
dnsPolicy: ""

# -- serviceAccount for usage of worker pods
serviceAccount:

# -- authentik worker pod-level security context
# @default -- `{}` (See [values.yaml])
securityContext: {}
Expand Down

0 comments on commit 02601ca

Please sign in to comment.