* protects agent's chart against template injection Signed-off-by: Nico Weisenauer <[email protected]> * removes unnecessary braces and whitespace Signed-off-by: Nico Weisenauer <[email protected]> * Removes int type validation via cast Signed-off-by: Nico Weisenauer <[email protected]> --------- Signed-off-by: Nico Weisenauer <[email protected]>
27 lines
781 B
YAML
27 lines
781 B
YAML
# Required cluster role to allow spire-agent to query k8s API server
|
|
kind: ClusterRole
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: {{ include "spire-agent.fullname" . | quote }}
|
|
rules:
|
|
- apiGroups: [""]
|
|
resources:
|
|
- pods
|
|
- nodes
|
|
- nodes/proxy
|
|
verbs: ["get"]
|
|
---
|
|
# Binds above cluster role to spire-agent service account
|
|
kind: ClusterRoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: {{ include "spire-agent.fullname" . | quote }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "spire-agent.serviceAccountName" . | quote }}
|
|
namespace: {{ include "spire-agent.namespace" . | quote }}
|
|
roleRef:
|
|
kind: ClusterRole
|
|
name: {{ include "spire-agent.fullname" . | quote }}
|
|
apiGroup: rbac.authorization.k8s.io
|