From f90be05a2f803cb53c4fd2cf599365cd2b18e8a4 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Thu, 2 Sep 2021 15:29:24 +0200 Subject: [PATCH] fix an RBAC bug in common --- charts/library/common/Chart.yaml | 2 +- charts/library/common/templates/_rbac.tpl | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index 40d40613a96..ae655805640 100644 --- a/charts/library/common/Chart.yaml +++ b/charts/library/common/Chart.yaml @@ -18,4 +18,4 @@ maintainers: name: common sources: null type: library -version: 6.13.2 +version: 6.13.3 diff --git a/charts/library/common/templates/_rbac.tpl b/charts/library/common/templates/_rbac.tpl index 7599c54e876..53601012ea1 100644 --- a/charts/library/common/templates/_rbac.tpl +++ b/charts/library/common/templates/_rbac.tpl @@ -8,7 +8,7 @@ within the common library. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: {{ include "common.names.fullname" . -}} + name: {{ include "common.names.fullname" . }} labels: {{- include "common.labels" . | nindent 4 }} {{- with .Values.rbac.labels }} @@ -21,12 +21,13 @@ metadata: {{- with .Values.rbac.rules }} rules: {{- . | toYaml | nindent 4 }} -{{- end -}} +{{- end}} + --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: {{ include "common.names.fullname" . -}} + name: {{ include "common.names.fullname" . }} labels: {{- include "common.labels" . | nindent 4 }} {{- with .Values.rbac.labels }} @@ -39,7 +40,7 @@ metadata: roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: {{ include "common.names.fullname" . -}} + name: {{ include "common.names.fullname" . }} subjects: {{- if .Values.serviceAccount }} - kind: ServiceAccount