[bitnami/metallb] Fix serviceaccount names (#13135)

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>
This commit is contained in:
Rafael Ríos Saavedra
2022-10-25 13:02:10 +02:00
committed by GitHub
parent f76c57aef7
commit cde93315ee
2 changed files with 3 additions and 3 deletions

View File

@@ -28,4 +28,4 @@ sources:
- https://github.com/metallb/metallb
- https://github.com/bitnami/containers/tree/main/bitnami/metallb
- https://metallb.universe.tf
version: 4.1.9
version: 4.1.10

View File

@@ -5,7 +5,7 @@
*/}}
{{- define "metallb.controller.serviceAccountName" -}}
{{- if .Values.controller.serviceAccount.create -}}
{{ default (include "common.names.fullname" .) .Values.controller.serviceAccount.name }}
{{ default (printf "%s-controller" (include "common.names.fullname" .)) .Values.controller.serviceAccount.name | trunc 63 | trimSuffix "-" }}
{{- else -}}
{{ default "default" .Values.controller.serviceAccount.name }}
{{- end -}}
@@ -16,7 +16,7 @@
*/}}
{{- define "metallb.speaker.serviceAccountName" -}}
{{- if .Values.speaker.serviceAccount.create -}}
{{ default (include "common.names.fullname" .) .Values.speaker.serviceAccount.name }}
{{ default (printf "%s-speaker" (include "common.names.fullname" .)) .Values.speaker.serviceAccount.name | trunc 63 | trimSuffix "-" }}
{{- else -}}
{{ default "default" .Values.speaker.serviceAccount.name }}
{{- end -}}