mirror of https://git.rancher.io/charts
24 lines
506 B
YAML
24 lines
506 B
YAML
{{- if .Values.rbac.create -}}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
labels:
|
|
app: {{ template "k8s-prometheus-adapter.name" . }}
|
|
chart: {{ template "k8s-prometheus-adapter.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
name: {{ template "k8s-prometheus-adapter.name" . }}-resource-reader
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- namespaces
|
|
- pods
|
|
- services
|
|
- configmaps
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
{{- end -}}
|