Skip to content

Commit

Permalink
added policyPriorities
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriydzobak committed Mar 16, 2021
1 parent 95550bc commit 76a3c12
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions charts/policy-reporter/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if .Values.policyPriorities.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "policyreporter.fullname" . }}
rules:
- apiGroups:
- ''
resources:
- configmaps
verbs:
- get
- list
- watch
{{- end }}
14 changes: 14 additions & 0 deletions charts/policy-reporter/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if .Values.policyPriorities.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "policyreporter.fullname" . }}
roleRef:
kind: Role
name: {{ include "policyreporter.fullname" . }}
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: "ServiceAccount"
name: {{ include "policyreporter.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/policy-reporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ global:
api:
enabled: false

# Policy Priorities
policyPriorities:
enabled: false

loki:
# loki host address
host: ""
Expand Down

0 comments on commit 76a3c12

Please sign in to comment.