From e16a48cce6dc9231684768890d8791dfb2272825 Mon Sep 17 00:00:00 2001 From: "kanika.mahajan.tw" Date: Wed, 22 Oct 2025 16:36:27 +0200 Subject: [PATCH] added automountServiceAccountToken flag --- charts/meilisearch/templates/serviceaccount.yaml | 1 + charts/meilisearch/values.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/charts/meilisearch/templates/serviceaccount.yaml b/charts/meilisearch/templates/serviceaccount.yaml index de9b548..f3884dc 100644 --- a/charts/meilisearch/templates/serviceaccount.yaml +++ b/charts/meilisearch/templates/serviceaccount.yaml @@ -9,4 +9,5 @@ metadata: annotations: {{ toYaml . | nindent 4 }} {{- end }} +automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} {{- end }} diff --git a/charts/meilisearch/values.yaml b/charts/meilisearch/values.yaml index fe6b68d..a57cfda 100644 --- a/charts/meilisearch/values.yaml +++ b/charts/meilisearch/values.yaml @@ -61,6 +61,10 @@ serviceAccount: name: "" # -- Additional annotations for created service account annotations: {} + ## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created + ## Can be set to false if pods using this serviceAccount do not need to use K8s API + ## + automountServiceAccountToken: false podAnnotations: {}