Skip to content

Commit

Permalink
fix: error calling semver, invalid semantic version (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
iziang authored Sep 21, 2024
1 parent 503b7f0 commit f2c7201
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons-cluster/elasticsearch-cluster/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ replicas: {{ max .Values.replicas 3 }}
{{- end }}

{{- define "elasticsearch.version" }}
{{- if .Values.version }}
{{- trimPrefix "elasticsearch-" .Values.version }}
{{- else }}
{{- .Chart.AppVersion }}
{{- end }}
{{- end }}

{{- define "elasticsearch.majorVersion" }}
Expand Down

0 comments on commit f2c7201

Please sign in to comment.