From c471e36129129f27bd911ae0bab39af6bb0f62a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20J=2E=20Salmer=C3=B3n-Garc=C3=ADa?= Date: Fri, 19 Jan 2024 10:26:14 +0100 Subject: [PATCH] [bitnami/discourse] fix: :lock: Move service-account token auto-mount to pod declaration (#22394) Signed-off-by: Javier Salmeron Garcia --- bitnami/discourse/Chart.yaml | 2 +- bitnami/discourse/README.md | 1 + bitnami/discourse/templates/deployment.yaml | 1 + bitnami/discourse/values.yaml | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bitnami/discourse/Chart.yaml b/bitnami/discourse/Chart.yaml index db4125d62b..60a16a608a 100644 --- a/bitnami/discourse/Chart.yaml +++ b/bitnami/discourse/Chart.yaml @@ -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 diff --git a/bitnami/discourse/README.md b/bitnami/discourse/README.md index 31a5b50b6c..32afee0408 100644 --- a/bitnami/discourse/README.md +++ b/bitnami/discourse/README.md @@ -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 | `{}` | diff --git a/bitnami/discourse/templates/deployment.yaml b/bitnami/discourse/templates/deployment.yaml index 2f238eedd6..77af310bd6 100644 --- a/bitnami/discourse/templates/deployment.yaml +++ b/bitnami/discourse/templates/deployment.yaml @@ -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 }} diff --git a/bitnami/discourse/values.yaml b/bitnami/discourse/values.yaml index 2e8c568f9e..1b5a61fc88 100644 --- a/bitnami/discourse/values.yaml +++ b/bitnami/discourse/values.yaml @@ -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/ ##