rancher-partner-charts/charts/kubecost/cost-analyzer/templates/cost-analyzer-cluster-role-...

26 lines
526 B
YAML
Raw Normal View History

{{- if (.Values.kubecostModel.etlReadOnlyMode) }}
{{- if and .Values.reporting .Values.reporting.logCollection -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: {{ .Release.Namespace }}
name: {{ template "cost-analyzer.serviceAccountName" . }}
rules:
- apiGroups:
- ''
resources:
- "pods/log"
verbs:
- get
- list
- watch
- apiGroups:
- ''
resources:
- configmaps
verbs:
- get
- list
- watch
{{- end -}}
{{- end -}}