[COMMON][MARIADB] Corrected PeerAuthentication matchLabels 75/129175/2
authorAndreas Geissler <andreas-geissler@telekom.de>
Mon, 9 May 2022 11:25:39 +0000 (13:25 +0200)
committerFiachra Corcoran <fiachra.corcoran@est.tech>
Thu, 12 May 2022 12:55:51 +0000 (12:55 +0000)
The matchLabels should use the existing Label:
app.kubernetes.io/name instead of adding a new label

Issue-ID: OOM-2820

Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Change-Id: I9d4405f2855f34cc32085ba571478dafa344e51e

kubernetes/common/mariadb-galera/templates/service.yaml

index 880bc55..9b4c05e 100644 (file)
@@ -29,7 +29,7 @@ metadata:
 spec:
   selector:
     matchLabels:
-      app: {{ include "common.servicename" . }}
+      app.kubernetes.io/name: {{ include "common.servicename" . }}
   portLevelMtls:
     {{ .Values.service.internalPort }}:
       mode: DISABLE