Skip to content

Commit 4fd7ffa

Browse files
bdomarsrissson
andauthored
charts/authentik: add .Values.global.secretAnnotations (#304)
Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
1 parent 7fe90c7 commit 4fd7ffa

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

charts/authentik/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ The secret `authentik-postgres-credentials` must have `username` and `password`
165165
| global.podLabels | object | `{}` | Labels for all deployed pods |
166166
| global.priorityClassName | string | `""` | Default priority class for all components |
167167
| global.revisionHistoryLimit | int | `3` | |
168+
| global.secretAnnotations | object | `{}` | Annotations for all deployed secrets |
168169
| global.securityContext | object | `{}` (See [values.yaml]) | Toggle and define pod-level security context. |
169170
| global.tolerations | list | `[]` | Default tolerations for all components |
170171
| global.topologySpreadConstraints | list | `[]` | Default [TopologySpreadConstraints] rules for all components # Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ |

charts/authentik/templates/secret.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ metadata:
55
namespace: {{ .Release.Namespace | quote }}
66
labels:
77
{{- include "authentik.labels" (dict "context" .) | nindent 4 }}
8-
{{- if .Values.annotations }}
8+
{{- if .Values.global.secretAnnotations }}
99
annotations:
10-
{{- toYaml .Values.annotations | nindent 4 }}
10+
{{- toYaml .Values.global.secretAnnotations | nindent 4 }}
1111
{{- end }}
1212
data:
1313
{{- include "authentik.env" (dict "root" . "values" .Values.authentik) | indent 2 }}

charts/authentik/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ global:
4040
# -- Annotations for all deployed pods
4141
podAnnotations: {}
4242

43+
# -- Annotations for all deployed secrets
44+
secretAnnotations: {}
45+
4346
# -- Labels for all deployed pods
4447
podLabels: {}
4548

0 commit comments

Comments
 (0)