Update RBAC verbs to include create

pull/2862/head
Geet Samra 2023-08-14 15:27:43 -07:00
parent a13e2576a5
commit e3746cf180
1 changed files with 14 additions and 13 deletions

View File

@ -16,9 +16,9 @@ rules:
- prometheuses/finalizers - prometheuses/finalizers
- alertmanagers/finalizers - alertmanagers/finalizers
verbs: verbs:
- 'get' - get
- 'list' - list
- 'watch' - watch
- apiGroups: - apiGroups:
- monitoring.coreos.com - monitoring.coreos.com
resources: resources:
@ -32,7 +32,7 @@ rules:
- probes/finalizers - probes/finalizers
- alertmanagerconfigs - alertmanagerconfigs
verbs: verbs:
- '*' - *
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
@ -51,9 +51,9 @@ rules:
- prometheuses/finalizers - prometheuses/finalizers
- alertmanagers/finalizers - alertmanagers/finalizers
verbs: verbs:
- 'get' - get
- 'list' - list
- 'watch' - watch
- apiGroups: - apiGroups:
- monitoring.coreos.com - monitoring.coreos.com
resources: resources:
@ -66,7 +66,7 @@ rules:
- probes - probes
- alertmanagerconfigs - alertmanagerconfigs
verbs: verbs:
- '*' - *
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
@ -94,9 +94,9 @@ rules:
- probes/finalizers - probes/finalizers
- alertmanagerconfigs - alertmanagerconfigs
verbs: verbs:
- 'get' - get
- 'list' - list
- 'watch' - watch
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
@ -118,7 +118,8 @@ rules:
- "https:{{ include "call-nested" (list . "grafana" "grafana.fullname") }}:{{ .Values.grafana.service.port }}" - "https:{{ include "call-nested" (list . "grafana" "grafana.fullname") }}:{{ .Values.grafana.service.port }}"
{{- end }} {{- end }}
verbs: verbs:
- 'get' - get
- create
- apiGroups: - apiGroups:
- "" - ""
resourceNames: resourceNames:
@ -131,4 +132,4 @@ rules:
- endpoints - endpoints
verbs: verbs:
- list - list
{{- end }} {{- end }}