diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2023-07-19 11:57:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-07-19 11:57:53 +0000 |
commit | ea924c1925e1defb454c3af53245a84ef7ec060e (patch) | |
tree | 75ca37f6fa3c55e0cef9049148a54024d39e821f /kubernetes/common | |
parent | afd83333558d7b9240bec6836d13ca73fd494493 (diff) | |
parent | 95ea136d97f812b0946b03f8d9b2df4cdf3673d3 (diff) |
Merge "[COMMON] Add version label to be Istio ready"
Diffstat (limited to 'kubernetes/common')
-rw-r--r-- | kubernetes/common/common/templates/_labels.tpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kubernetes/common/common/templates/_labels.tpl b/kubernetes/common/common/templates/_labels.tpl index f2bd1a1141..a690acd141 100644 --- a/kubernetes/common/common/templates/_labels.tpl +++ b/kubernetes/common/common/templates/_labels.tpl @@ -27,6 +27,11 @@ The function takes several arguments (inside a dictionary): {{- $dot := default . .dot -}} app.kubernetes.io/name: {{ include "common.name" $dot }} app: {{ include "common.name" $dot }} +{{- if $dot.Chart.AppVersion }} +version: "{{ $dot.Chart.AppVersion | replace "+" "_" }}" +{{- else }} +version: "{{ $dot.Chart.Version | replace "+" "_" }}" +{{- end }} {{ if not .ignoreHelmChart }} helm.sh/chart: {{ include "common.chart" $dot }} {{- end }} |