Skip to content

Commit

Permalink
add fullnameOverride value to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
zubenkoivan committed Nov 8, 2021
1 parent 35ff023 commit 0075bb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/platform-secrets/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
{{- end -}}

{{- define "platformSecrets.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{- define "platformSecrets.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" -}}
Expand Down

0 comments on commit 0075bb0

Please sign in to comment.