Skip to content

Commit

Permalink
Verify the Helm chart RBAC template
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Wall <richard.wall@venafi.com>
  • Loading branch information
wallrj committed Nov 12, 2024
1 parent 1f00f09 commit b9aa79f
Show file tree
Hide file tree
Showing 5 changed files with 545 additions and 40 deletions.
26 changes: 26 additions & 0 deletions deploy/charts/venafi-kubernetes-agent/templates/rbac-static.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-event-emitted
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
rules:
- apiGroups: [""]
resources: ["events"]
verbs: ["create"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-event-emitted
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ include "venafi-kubernetes-agent.fullname" . }}-event-emitted
subjects:
- kind: ServiceAccount
name: {{ include "venafi-kubernetes-agent.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
Loading

0 comments on commit b9aa79f

Please sign in to comment.