From 04a2ee8f43d3083b82d5156e62e6fec13c147dad Mon Sep 17 00:00:00 2001 From: Abhradeep Chakraborty Date: Tue, 23 Jul 2024 11:20:17 +0530 Subject: [PATCH] fix(helm): remove duplicate labels Signed-off-by: Abhradeep Chakraborty --- charts/dragonfly-operator/templates/clusterroles.yaml | 2 -- charts/dragonfly-operator/templates/serviceaccount.yaml | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/charts/dragonfly-operator/templates/clusterroles.yaml b/charts/dragonfly-operator/templates/clusterroles.yaml index 9c044bc..d3352da 100644 --- a/charts/dragonfly-operator/templates/clusterroles.yaml +++ b/charts/dragonfly-operator/templates/clusterroles.yaml @@ -84,7 +84,6 @@ metadata: labels: {{- include "dragonfly-operator.labels" . | nindent 4 }} app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/instance: metrics-reader rules: - nonResourceURLs: - /metrics @@ -98,7 +97,6 @@ metadata: labels: {{- include "dragonfly-operator.labels" . | nindent 4 }} app.kubernetes.io/component: kube-rbac-proxy - app.kubernetes.io/instance: proxy-role rules: - apiGroups: - authentication.k8s.io diff --git a/charts/dragonfly-operator/templates/serviceaccount.yaml b/charts/dragonfly-operator/templates/serviceaccount.yaml index edadc0e..c364d9a 100644 --- a/charts/dragonfly-operator/templates/serviceaccount.yaml +++ b/charts/dragonfly-operator/templates/serviceaccount.yaml @@ -6,9 +6,8 @@ metadata: namespace: {{.Release.Namespace | quote}} labels: {{- include "dragonfly-operator.labels" . | nindent 4 }} - {{- with .Values.serviceAccount.annotations }} app.kubernetes.io/component: rbac - app.kubernetes.io/instance: controller-manager-sa + {{- with .Values.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }}