fix an RBAC bug in common

This commit is contained in:
kjeld Schouten-Lebbing 2021-09-02 15:29:24 +02:00
parent 9447c07cc0
commit f90be05a2f
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
2 changed files with 6 additions and 5 deletions

View File

@ -18,4 +18,4 @@ maintainers:
name: common
sources: null
type: library
version: 6.13.2
version: 6.13.3

View File

@ -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