Skip to content

Commit

Permalink
common: modify vm.managed.fullname prefixes (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk authored Oct 29, 2024
1 parent 3c282e7 commit f5217c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/victoria-metrics-common/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Next release

- TODO
- vm.managed.fullname template modify prefixes

## 0.0.17

Expand Down
2 changes: 1 addition & 1 deletion charts/victoria-metrics-common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
type: library
description: Victoria Metrics Common - contains shared templates for all Victoria Metrics helm charts
name: victoria-metrics-common
version: 0.0.17
version: 0.0.18
sources:
- https://github.com/VictoriaMetrics/helm-charts
kubeVersion: ">=1.23.0-0"
Expand Down
1 change: 1 addition & 0 deletions charts/victoria-metrics-common/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ If release name contains chart name it will be used as a full name.
{{- if kindIs "slice" $prefix -}}
{{- $prefix = last $prefix -}}
{{- end -}}
{{- $prefix = ternary $prefix (printf "vm%s" $prefix) (or (hasPrefix "vm" $prefix) (hasPrefix "vl" $prefix)) -}}
{{- if or .prefix $prefix -}}
{{- $_ := set . "oldPrefix" .prefix }}
{{- end -}}
Expand Down

0 comments on commit f5217c1

Please sign in to comment.