mirror of https://git.rancher.io/charts
36 lines
814 B
YAML
36 lines
814 B
YAML
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: {{ .Chart.Name }}-manager
|
|
labels:
|
|
app: {{ .Chart.Name }}-manager
|
|
rules:
|
|
- apiGroups:
|
|
- apiextensions.k8s.io
|
|
resources:
|
|
- customresourcedefinitions
|
|
verbs: ['create', 'get', 'patch', 'delete']
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: {{ .Chart.Name }}-manager
|
|
labels:
|
|
app: {{ .Chart.Name }}-manager
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ .Chart.Name }}-manager
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ .Chart.Name }}-manager
|
|
namespace: {{ .Release.Namespace }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ .Chart.Name }}-manager
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
app: {{ .Chart.Name }}-manager
|