Skip to content

Commit

Permalink
* add roleBindingName in commons
Browse files Browse the repository at this point in the history
* increased chart version commons
  • Loading branch information
AronKa-SAG committed Jun 24, 2024
1 parent 82efdab commit c859f51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ name: common
sources:
- https://github.com/softwareag/webmethods-helm-charts
type: library
version: 1.0.2
version: 1.0.3
11 changes: 11 additions & 0 deletions common/helm/templates/_names.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c859f51

Please sign in to comment.