Skip to content

Commit

Permalink
update helper
Browse files Browse the repository at this point in the history
  • Loading branch information
coutug committed Mar 19, 2024
1 parent 0612aa6 commit 4fcf980
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/substreams-sink/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 1.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 3 additions & 2 deletions charts/substreams-sink/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ If release name contains chart name it will be used as a full name.
{{- define "substreams-sink.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else if .Values.nameOverride }}
{{- $baseName := default .Chart.Name .Values.nameOverride }}
{{- else }}
{{- $baseName := default .Chart.Name .Values.nameOverride -}}
{{- $name := .Release.Name -}}
{{- $name := .Release.Name }}
{{- if and .Values.sinkType (not .Values.fullnameOverride) }}
{{- $name = printf "%s-%s" $name .Values.sinkType -}}
{{- end }}
Expand Down

0 comments on commit 4fcf980

Please sign in to comment.