Skip to content

Commit

Permalink
Merge pull request #242 from kastl-ars/20241220_rbac_if_condition
Browse files Browse the repository at this point in the history
clusterrole.yaml: add if condition for .Values.rbac.enabled
  • Loading branch information
cliffcolvin authored Jan 16, 2025
2 parents 9911dbc + 38d0e4e commit 131f9b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/opencost/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords:
- finops
- monitoring
- opencost
version: 1.43.0
version: 1.43.1
maintainers:
- name: mattray
url: https://mattray.dev
Expand Down
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 }}
2 changes: 1 addition & 1 deletion charts/opencost/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ subjects:
- kind: ServiceAccount
name: {{ template "opencost.serviceAccountName" . }}
namespace: {{ include "opencost.namespace" . }}
---
{{- end }}
---

0 comments on commit 131f9b3

Please sign in to comment.