Skip to content

Commit

Permalink
[ENH] ✨ add ability to configure automountServiceAccountToken in helm…
Browse files Browse the repository at this point in the history
… chart (#915)

Co-authored-by: Eneman Donatien <[email protected]>
  • Loading branch information
Donatien26 and Eneman Donatien authored Jan 20, 2025
1 parent 1f77c31 commit 3686ef5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm-chart/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "onyxia.api.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.api.serviceAccount.automountServiceAccountToken }}
securityContext:
{{- toYaml .Values.api.podSecurityContext | nindent 8 }}
containers:
Expand Down
2 changes: 2 additions & 0 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,5 @@ api:
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name:
# Boolean to indicate whether the service account token must be injected into the pod or not. It can be deactivated if Onyxia doesn't use it.
automountServiceAccountToken: true

0 comments on commit 3686ef5

Please sign in to comment.