rancher-partner-charts/charts/codefresh/cf-runtime/0.1.401/templates/monitor/role.monitor.yaml

41 lines
711 B
YAML

{{- if and .Values.monitor.enabled }}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "cf-monitor.fullname" . }}
labels: {{- include "cf-monitor.labels" . | nindent 4 }}
rules:
- apiGroups:
- ""
resources: [ "*" ]
verbs:
- get
- list
- watch
- create
- delete
- apiGroups:
- ""
resources: [ "pods" ]
verbs:
- get
- list
- watch
- create
- deletecollection
- apiGroups:
- extensions
resources: [ "*" ]
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources: [ "*" ]
verbs:
- get
- list
- watch
{{- end }}