Skip to content

Commit

Permalink
charts/opencost/templates/clusterrole.yaml: add if condition for .Val…
Browse files Browse the repository at this point in the history
…ues.rbac.enabled, like on the clusterrolebinding

fix #241
  • Loading branch information
kastl-ars committed Dec 20, 2024
1 parent 2485c35 commit 1918c7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/opencost/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -77,3 +78,4 @@ rules:
- get
- list
- watch
{{- end }}

0 comments on commit 1918c7c

Please sign in to comment.