From 526fc5d594213df2a0a7c03fb8eaa5b03ae9e089 Mon Sep 17 00:00:00 2001 From: Philipp Hellmich <runningman84@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:32:02 +0100 Subject: [PATCH] Fix duplicate labels --- .../chart/local-path-provisioner/templates/deployment.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deploy/chart/local-path-provisioner/templates/deployment.yaml b/deploy/chart/local-path-provisioner/templates/deployment.yaml index 98c1ff0a..37021a92 100644 --- a/deploy/chart/local-path-provisioner/templates/deployment.yaml +++ b/deploy/chart/local-path-provisioner/templates/deployment.yaml @@ -9,8 +9,7 @@ spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: - app.kubernetes.io/name: {{ include "local-path-provisioner.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} +{{ include "local-path-provisioner.labels" . | indent 6 }} template: metadata: {{- with .Values.podAnnotations }} @@ -18,8 +17,6 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} labels: - app.kubernetes.io/name: {{ include "local-path-provisioner.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} {{ include "local-path-provisioner.labels" . | indent 8 }} spec: {{- with .Values.imagePullSecrets }} -- GitLab