diff --git a/charts/opencost/templates/clusterrole.yaml b/charts/opencost/templates/clusterrole.yaml index f033a03..8999625 100644 --- a/charts/opencost/templates/clusterrole.yaml +++ b/charts/opencost/templates/clusterrole.yaml @@ -1,3 +1,4 @@ +{{- if .Values.rbac.enabled }} # Cluster role giving opencost to get, list, watch required resources # No write permissions are required apiVersion: rbac.authorization.k8s.io/v1 @@ -77,3 +78,4 @@ rules: - get - list - watch +{{- end }}