Skip to content

Commit

Permalink
Add to templates file
Browse files Browse the repository at this point in the history
Signed-off-by: peterabarr <[email protected]>
  • Loading branch information
peterabarr committed Oct 2, 2023
1 parent 7d112fd commit 6885f43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Empty file added alertmanager.kubeVersion
Empty file.
7 changes: 7 additions & 0 deletions charts/alertmanager/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ If release name contains chart name it will be used as a full name.
{{- end }}
{{- end }}

{{/*
Get KubeVersion removing pre-release information.
*/}}
{{- define "alertmanager.kubeVersion" -}}
{{- default .Capabilities.KubeVersion.Version (regexFind "v[0-9]+\\.[0-9]+\\.[0-9]+" .Capabilities.KubeVersion.Version) -}}
{{- end -}}

{{/*
Create chart name and version as used by the chart label.
*/}}
Expand Down

0 comments on commit 6885f43

Please sign in to comment.