Skip to content

Commit

Permalink
add agent Role object
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Jul 19, 2022
1 parent b2756c0 commit ac63e0d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions charts/parca/templates/agent-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.agent.enabled -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
{{- include "parca.labels.agent" . | nindent 4 }}
name: {{ include "parca.fullname" . }}-agent
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- policy
resourceNames:
- {{ include "parca.fullname" . }}-agent
resources:
- podsecuritypolicies
verbs:
- use
{{- end }}

0 comments on commit ac63e0d

Please sign in to comment.