Skip to content

Commit

Permalink
charts/authentik: add .Values.global.secretAnnotations (#304)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
  • Loading branch information
bdomars and rissson authored Nov 27, 2024
1 parent 7fe90c7 commit 4fd7ffa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/authentik/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ The secret `authentik-postgres-credentials` must have `username` and `password`
| global.podLabels | object | `{}` | Labels for all deployed pods |
| global.priorityClassName | string | `""` | Default priority class for all components |
| global.revisionHistoryLimit | int | `3` | |
| global.secretAnnotations | object | `{}` | Annotations for all deployed secrets |
| global.securityContext | object | `{}` (See [values.yaml]) | Toggle and define pod-level security context. |
| global.tolerations | list | `[]` | Default tolerations for all components |
| global.topologySpreadConstraints | list | `[]` | Default [TopologySpreadConstraints] rules for all components # Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ |
Expand Down
4 changes: 2 additions & 2 deletions charts/authentik/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ metadata:
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "authentik.labels" (dict "context" .) | nindent 4 }}
{{- if .Values.annotations }}
{{- if .Values.global.secretAnnotations }}
annotations:
{{- toYaml .Values.annotations | nindent 4 }}
{{- toYaml .Values.global.secretAnnotations | nindent 4 }}
{{- end }}
data:
{{- include "authentik.env" (dict "root" . "values" .Values.authentik) | indent 2 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/authentik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ global:
# -- Annotations for all deployed pods
podAnnotations: {}

# -- Annotations for all deployed secrets
secretAnnotations: {}

# -- Labels for all deployed pods
podLabels: {}

Expand Down

0 comments on commit 4fd7ffa

Please sign in to comment.