fix(argo-cd): Remove component labels from aggregation roles

Signed-off-by: Christian Strack <github@abyth.de>

Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Christian Strack 2021-08-13 14:55:28 +02:00
parent 7e4177eb9d
commit c120637e01

View file

@ -5,7 +5,7 @@ metadata:
name: {{ include "argo-cd.fullname" . }}-aggregate-to-view name: {{ include "argo-cd.fullname" . }}-aggregate-to-view
labels: labels:
rbac.authorization.k8s.io/aggregate-to-view: "true" rbac.authorization.k8s.io/aggregate-to-view: "true"
{{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }} {{- include "argo-cd.labels" (dict "context" .) | nindent 4 }}
rules: rules:
- apiGroups: - apiGroups:
- argoproj.io - argoproj.io
@ -24,7 +24,7 @@ metadata:
name: {{ include "argo-cd.fullname" . }}-aggregate-to-edit name: {{ include "argo-cd.fullname" . }}-aggregate-to-edit
labels: labels:
rbac.authorization.k8s.io/aggregate-to-edit: "true" rbac.authorization.k8s.io/aggregate-to-edit: "true"
{{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }} {{- include "argo-cd.labels" (dict "context" .) | nindent 4 }}
rules: rules:
- apiGroups: - apiGroups:
- argoproj.io - argoproj.io
@ -48,7 +48,7 @@ metadata:
name: {{ include "argo-cd.fullname" . }}-aggregate-to-admin name: {{ include "argo-cd.fullname" . }}-aggregate-to-admin
labels: labels:
rbac.authorization.k8s.io/aggregate-to-admin: "true" rbac.authorization.k8s.io/aggregate-to-admin: "true"
{{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }} {{- include "argo-cd.labels" (dict "context" .) | nindent 4 }}
rules: rules:
- apiGroups: - apiGroups:
- argoproj.io - argoproj.io