Skip to content

Commit 0433be5

Browse files
authored
Merge pull request #270 from imdmahajankanika/main
added automountServiceAccountToken flag
2 parents 47a07f4 + 6e67e95 commit 0433be5

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

charts/meilisearch/templates/serviceaccount.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ metadata:
99
annotations:
1010
{{ toYaml . | nindent 4 }}
1111
{{- end }}
12+
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
1213
{{- end }}

charts/meilisearch/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ serviceAccount:
6161
name: ""
6262
# -- Additional annotations for created service account
6363
annotations: {}
64+
## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
65+
## Can be set to false if pods using this serviceAccount do not need to use K8s API
66+
##
67+
automountServiceAccountToken: false
6468

6569
podAnnotations: {}
6670

manifests/meilisearch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ metadata:
1010
app.kubernetes.io/version: "v1.18.0"
1111
app.kubernetes.io/component: search-engine
1212
app.kubernetes.io/part-of: meilisearch
13+
automountServiceAccountToken: false
1314
---
1415
# Source: meilisearch/templates/configmap.yaml
1516
apiVersion: v1

0 commit comments

Comments
 (0)