From: Fiete Ostkamp Date: Wed, 19 Apr 2023 07:12:46 +0000 (+0000) Subject: [COMMON] Add app label to common.labels X-Git-Tag: 12.0.0~57 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=74a277101800ff2729429e51946070878c046952;p=oom.git [COMMON] Add app label to common.labels - add an app label to all resources because this is picked up by Istio Issue-ID: OOM-3164 Signed-off-by: Fiete Ostkamp Change-Id: I71831b29c5c5b9ddc2bcafbc1567ed0dfa971e5c --- diff --git a/kubernetes/common/common/templates/_labels.tpl b/kubernetes/common/common/templates/_labels.tpl index 993fb7dfac..f2bd1a1141 100644 --- a/kubernetes/common/common/templates/_labels.tpl +++ b/kubernetes/common/common/templates/_labels.tpl @@ -26,6 +26,7 @@ The function takes several arguments (inside a dictionary): {{- define "common.labels" -}} {{- $dot := default . .dot -}} app.kubernetes.io/name: {{ include "common.name" $dot }} +app: {{ include "common.name" $dot }} {{ if not .ignoreHelmChart }} helm.sh/chart: {{ include "common.chart" $dot }} {{- end }}