Skip to content

Commit

Permalink
Add configurable securityContext (#69)
Browse files Browse the repository at this point in the history
* Add configurable securityContext for server & worker

* Bump chart version
  • Loading branch information
WatcherWhale authored May 9, 2022
1 parent 2820a43 commit 5652482
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/authentik/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ keywords:
- ldap
- idp
- sp
version: 2022.4.1
version: 2022.4.2
appVersion: 2022.4.1
icon: https://raw.githubusercontent.com/BeryJu/authentik/master/web/icons/icon.svg
maintainers:
Expand Down
8 changes: 6 additions & 2 deletions charts/authentik/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ redis:
| Name | Email | Url |
| ---- | ------ | --- |
| BeryJu | [email protected] | https://github.com/BeryJu |
| dirtycajunrice | [email protected] | https://github.com/dirtycajunrice |
| BeryJu | <[email protected]> | <https://github.com/BeryJu> |
| dirtycajunrice | <[email protected]> | <https://github.com/dirtycajunrice> |
## Source Code
Expand Down Expand Up @@ -128,6 +128,7 @@ redis:
| postgresql.enabled | bool | `false` | enable the bundled bitnami postgresql chart |
| postgresql.postgresqlDatabase | string | `"authentik"` | |
| postgresql.postgresqlUsername | string | `"authentik"` | |
| priorityClassName | string | `nil` | Custom priority class for different treatment by the scheduler |
| prometheus.rules.create | bool | `false` | |
| prometheus.serviceMonitor.create | bool | `false` | |
| prometheus.serviceMonitor.interval | string | `"30s"` | |
Expand All @@ -143,6 +144,7 @@ redis:
| replicas | int | `1` | Server replicas |
| resources.server | object | `{}` | |
| resources.worker | object | `{}` | |
| securityContext | object | `{}` | server securityContext |
| service.annotations | object | `{}` | |
| service.enabled | bool | `true` | Service that is created to access authentik |
| service.labels | object | `{}` | |
Expand All @@ -153,4 +155,6 @@ redis:
| serviceAccount.create | bool | `true` | Service account is needed for managed outposts |
| volumeMounts | list | `[]` | |
| volumes | list | `[]` | |
| worker.priorityClassName | string | `nil` | Custom priority class for different treatment by the scheduler |
| worker.replicas | int | `1` | worker replicas |
| worker.securityContext | object | `{}` | worker securityContext |
4 changes: 4 additions & 0 deletions charts/authentik/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ spec:
{{- end }}
{{ if eq . "server" -}}
priorityClassName: {{ $.Values.priorityClassName }}
securityContext:
{{- toYaml $.Values.securityContext | nindent 8 }}
{{- else -}}
priorityClassName: {{ $.Values.worker.priorityClassName }}
securityContext:
{{- toYaml $.Values.worker.securityContext | nindent 8 }}
{{- end }}
containers:
- name: {{ $.Chart.Name }}
Expand Down
4 changes: 4 additions & 0 deletions charts/authentik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
replicas: 1
# -- Custom priority class for different treatment by the scheduler
priorityClassName:
# -- server securityContext
securityContext: {}

worker:
# -- worker replicas
replicas: 1
# -- Custom priority class for different treatment by the scheduler
priorityClassName:
# -- worker securityContext
securityContext: {}

image:
repository: ghcr.io/goauthentik/server
Expand Down

0 comments on commit 5652482

Please sign in to comment.