diff --git a/charts/victoria-metrics-common/CHANGELOG.md b/charts/victoria-metrics-common/CHANGELOG.md index 39a9fba61..d9141ccb7 100644 --- a/charts/victoria-metrics-common/CHANGELOG.md +++ b/charts/victoria-metrics-common/CHANGELOG.md @@ -2,7 +2,7 @@ ## Next release -- TODO +- vm.managed.fullname template modify prefixes ## 0.0.17 diff --git a/charts/victoria-metrics-common/Chart.yaml b/charts/victoria-metrics-common/Chart.yaml index 2dd47cdda..30e71bbff 100644 --- a/charts/victoria-metrics-common/Chart.yaml +++ b/charts/victoria-metrics-common/Chart.yaml @@ -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" diff --git a/charts/victoria-metrics-common/templates/_helpers.tpl b/charts/victoria-metrics-common/templates/_helpers.tpl index e3c8860ea..46fa6976a 100644 --- a/charts/victoria-metrics-common/templates/_helpers.tpl +++ b/charts/victoria-metrics-common/templates/_helpers.tpl @@ -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 -}}