Skip to content

Commit

Permalink
fix: helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsens committed Sep 22, 2023
1 parent 136dd73 commit a0d03d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/zaakbrug/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for running ZaakBrug on Kubernetes
name: zaakbrug
icon: https://raw.githubusercontent.com/wearefrank/charts/master/charts/zaakbrug/icon.png
type: application
version: 2.0.6
version: 2.0.7

dependencies:
- name: ff-common
Expand Down
4 changes: 2 additions & 2 deletions charts/zaakbrug/templates/_helpers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ Create a name for apiProxy
We truncate at 54 chars in order to provide space for the "-api-proxy" suffix
*/}}
{{- define "zaakbrug.apiProxyName" -}}
{{ include "ff-common.name" . | trunc 54 | trimSuffix "-" }}-api-proxy
{{ include "ff-common.name" . | trunc 54 | trimSuffix "-" }}-{{ default "api-proxy" .Values.staging.apiProxy.nameOverride }}
{{- end }}

{{/*
Create a default fully qualified name for apiProxy.
We truncate at 54 chars in order to provide space for the "-api-proxy" suffix
*/}}
{{- define "zaakbrug.apiProxyFullname" -}}
{{- if .Values.fullnameOverride }}
{{- if .Values.staging.apiProxy.fullnameOverride }}
{{- .Values.staging.apiProxy.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default "api-proxy" .Values.staging.apiProxy.nameOverride }}
Expand Down

0 comments on commit a0d03d1

Please sign in to comment.