fix an RBAC bug in common
This commit is contained in:
parent
9447c07cc0
commit
f90be05a2f
|
@ -18,4 +18,4 @@ maintainers:
|
||||||
name: common
|
name: common
|
||||||
sources: null
|
sources: null
|
||||||
type: library
|
type: library
|
||||||
version: 6.13.2
|
version: 6.13.3
|
||||||
|
|
|
@ -8,7 +8,7 @@ within the common library.
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "common.names.fullname" . -}}
|
name: {{ include "common.names.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "common.labels" . | nindent 4 }}
|
{{- include "common.labels" . | nindent 4 }}
|
||||||
{{- with .Values.rbac.labels }}
|
{{- with .Values.rbac.labels }}
|
||||||
|
@ -21,12 +21,13 @@ metadata:
|
||||||
{{- with .Values.rbac.rules }}
|
{{- with .Values.rbac.rules }}
|
||||||
rules:
|
rules:
|
||||||
{{- . | toYaml | nindent 4 }}
|
{{- . | toYaml | nindent 4 }}
|
||||||
{{- end -}}
|
{{- end}}
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "common.names.fullname" . -}}
|
name: {{ include "common.names.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "common.labels" . | nindent 4 }}
|
{{- include "common.labels" . | nindent 4 }}
|
||||||
{{- with .Values.rbac.labels }}
|
{{- with .Values.rbac.labels }}
|
||||||
|
@ -39,7 +40,7 @@ metadata:
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: {{ include "common.names.fullname" . -}}
|
name: {{ include "common.names.fullname" . }}
|
||||||
subjects:
|
subjects:
|
||||||
{{- if .Values.serviceAccount }}
|
{{- if .Values.serviceAccount }}
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
|
|
Loading…
Reference in New Issue