mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
feat(common): Release version 2.0.0-beta.1 (#173)
This commit is contained in:
parent
19767d668c
commit
7b6ee00be6
189 changed files with 3110 additions and 3023 deletions
|
@ -0,0 +1,18 @@
|
|||
{{- /*
|
||||
Returns the value for serviceAccountName
|
||||
*/ -}}
|
||||
{{- define "bjw-s.common.lib.pod.field.serviceAccountName" -}}
|
||||
{{- $rootContext := .ctx.rootContext -}}
|
||||
|
||||
{{- /* Default to "default" */ -}}
|
||||
{{- $name := "default" -}}
|
||||
|
||||
{{- /* See if an override is needed */ -}}
|
||||
{{- if $rootContext.Values.serviceAccount.create -}}
|
||||
{{- $serviceAccountValues := (mustDeepCopy $rootContext.Values.serviceAccount) -}}
|
||||
{{- $serviceAccountObject := (include "bjw-s.common.lib.serviceAccount.valuesToObject" (dict "rootContext" $rootContext "id" "default" "values" $serviceAccountValues)) | fromYaml -}}
|
||||
{{- $name = $serviceAccountObject.name -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $name -}}
|
||||
{{- end -}}
|
Loading…
Add table
Add a link
Reference in a new issue