diff --git a/common/helm/Chart.yaml b/common/helm/Chart.yaml index 55ffd77..df3f690 100644 --- a/common/helm/Chart.yaml +++ b/common/helm/Chart.yaml @@ -38,4 +38,4 @@ name: common sources: - https://github.com/softwareag/webmethods-helm-charts type: library -version: 1.0.2 \ No newline at end of file +version: 1.0.3 \ No newline at end of file diff --git a/common/helm/templates/_names.tpl b/common/helm/templates/_names.tpl index 1d244b6..c6ee9fd 100644 --- a/common/helm/templates/_names.tpl +++ b/common/helm/templates/_names.tpl @@ -84,4 +84,15 @@ Create the name of the role to use {{- else }} {{- default "default" .Values.serviceAccount.roleName }} {{- end }} +{{- end }} + +{{/* +Create the name of the rolebinding to use +*/}} +{{- define "common.names.roleBindingName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "common.names.fullname" .) .Values.serviceAccount.roleBindingName }} +{{- else }} +{{- default "default" .Values.serviceAccount.roleBindingName }} +{{- end }} {{- end }} \ No newline at end of file