mirror of
https://github.com/truenas/charts.git
synced 2026-04-05 03:39:20 +08:00
Allow overriding service account name
This commit is contained in:
@@ -44,7 +44,11 @@ Create chart name and version as used by the chart label.
|
||||
Determine service account name for deployment or statefulset.
|
||||
*/}}
|
||||
{{- define "common.names.serviceAccountName" -}}
|
||||
{{- (include "common.names.fullname" .) | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||
{{- if .Values.serviceAccountNameOverride }}
|
||||
{{- .Values.serviceAccountNameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
{{- printf "%s-service-account" (include "common.names.releaseName" .) | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user