mirror of https://git.rancher.io/charts
21 lines
563 B
YAML
21 lines
563 B
YAML
{{- if .Values.rbac.create }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
labels:
|
|
app: '{{ template "gatekeeper.name" . }}'
|
|
chart: '{{ template "gatekeeper.name" . }}'
|
|
gatekeeper.sh/system: "yes"
|
|
heritage: '{{ .Release.Service }}'
|
|
release: '{{ .Release.Name }}'
|
|
name: gatekeeper-manager-rolebinding
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: gatekeeper-manager-role
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: gatekeeper-admin
|
|
namespace: '{{ .Release.Namespace }}'
|
|
{{- end }}
|