From aead0897f8a6aac932b2763044ea02d16b2fa346 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sat, 16 Jan 2021 22:49:29 +0100 Subject: [PATCH] Revert selector labels for redis-db-assignment-operator --- charts/redis-db-assignment-operator/Chart.yaml | 2 +- .../templates/deployment.yaml | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/charts/redis-db-assignment-operator/Chart.yaml b/charts/redis-db-assignment-operator/Chart.yaml index 8a43790..55cc0a6 100644 --- a/charts/redis-db-assignment-operator/Chart.yaml +++ b/charts/redis-db-assignment-operator/Chart.yaml @@ -4,7 +4,7 @@ description: Redis Database Assignment Operator home: https://github.com/WyriHaximusNet/docker-kubernetes-redis-db-assignment-operator icon: https://helm.wyrihaximus.net/images/charts/redis-db-assignment-operator.png type: application -version: 1.0.4 +version: 1.0.5 appVersion: v1.0.1 maintainers: - name: WyriHaximus diff --git a/charts/redis-db-assignment-operator/templates/deployment.yaml b/charts/redis-db-assignment-operator/templates/deployment.yaml index 7a28916..44bd5f4 100644 --- a/charts/redis-db-assignment-operator/templates/deployment.yaml +++ b/charts/redis-db-assignment-operator/templates/deployment.yaml @@ -10,14 +10,24 @@ spec: type: Recreate selector: matchLabels: - {{- include "commons.selectorLabels" . | nindent 6 }} + app.kubernetes.io/name: {{ include "commons.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: annotations: prometheus.io/scrape: "true" prometheus.io/port: "9115" labels: - {{- include "commons.selectorLabels" . | nindent 8 }} + app: {{ template "commons.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/name: {{ template "commons.name" . }} + app.kubernetes.io/version: {{ .Chart.Version | quote }} + appRevision: {{ template "commons.nameRevision" . }} + chart: {{ template "commons.chart" . }} + helm.sh/chart: {{ template "commons.chart" . }} + release: {{ .Release.Name }} + releaseRevision: {{ .Release.Revision | quote }} + heritage: {{ .Release.Service }} spec: serviceAccountName: {{ include "commons.fullname" . }} containers: