You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
619 B
22 lines
619 B
4 years ago
|
{{- if .Values.rbac.create -}}
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
name: {{ include "local-path-provisioner.fullname" . }}
|
||
|
labels:
|
||
|
{{ include "local-path-provisioner.labels" . | indent 4 }}
|
||
|
rules:
|
||
|
- apiGroups: [""]
|
||
|
resources: ["nodes", "persistentvolumeclaims", "configmaps"]
|
||
|
verbs: ["get", "list", "watch"]
|
||
|
- apiGroups: [""]
|
||
|
resources: ["endpoints", "persistentvolumes", "pods"]
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: [""]
|
||
|
resources: ["events"]
|
||
|
verbs: ["create", "patch"]
|
||
|
- apiGroups: ["storage.k8s.io"]
|
||
|
resources: ["storageclasses"]
|
||
|
verbs: ["get", "list", "watch"]
|
||
|
{{- end -}}
|