[COMMON] Add app label to common.labels 24/134224/2
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Wed, 19 Apr 2023 07:12:46 +0000 (07:12 +0000)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Wed, 19 Apr 2023 08:09:45 +0000 (08:09 +0000)
- add an app label to all resources because this is picked up by Istio

Issue-ID: OOM-3164

Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I71831b29c5c5b9ddc2bcafbc1567ed0dfa971e5c

kubernetes/common/common/templates/_labels.tpl

index 993fb7d..f2bd1a1 100644 (file)
@@ -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 }}