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: {}