[bitnami/discourse] fix: 🔒 Move service-account token auto-mount to pod declaration (#22394)

Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com>
This commit is contained in:
Javier J. Salmerón-García
2024-01-19 10:26:14 +01:00
committed by GitHub
parent 0bd8132d8b
commit c471e36129
4 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -41,4 +41,4 @@ maintainers:
name: discourse
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/discourse
version: 12.3.0
version: 12.4.0
+1
View File
@@ -110,6 +110,7 @@ The command removes all the Kubernetes components associated with the chart and
| `podSecurityContext.sysctls` | Set kernel settings using the sysctl interface | `[]` |
| `podSecurityContext.supplementalGroups` | Set filesystem extra groups | `[]` |
| `podSecurityContext.fsGroup` | Set Discourse pod's Security Context fsGroup | `0` |
| `automountServiceAccountToken` | Mount Service Account token in pod | `false` |
| `hostAliases` | Add deployment host aliases | `[]` |
| `podAnnotations` | Additional pod annotations | `{}` |
| `podLabels` | Additional pod labels | `{}` |
@@ -34,6 +34,7 @@ spec:
labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }}
spec:
{{- include "discourse.imagePullSecrets" . | nindent 6 }}
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
{{- if .Values.hostAliases }}
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
{{- end }}
+3
View File
@@ -153,6 +153,9 @@ podSecurityContext:
sysctls: []
supplementalGroups: []
fsGroup: 0
## @param automountServiceAccountToken Mount Service Account token in pod
##
automountServiceAccountToken: false
## @param hostAliases Add deployment host aliases
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
##