Skip to content

Commit

Permalink
Add tokenreviews permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos committed Oct 30, 2024
1 parent 4107d50 commit d29ed6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/eks-pod-identity-agent/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ rules:
resources: ["serviceaccounts"]
verbs: {{ .Values.irsa.cluster_role.permissions.serviceaccounts.verbs }}
{{- end }}
{{- if .Values.irsa.cluster_role.permissions.tokenreviews.verbs }}
- apiGroups: [""]
resources: ["tokenreviews"]
verbs: {{ .Values.irsa.cluster_role.permissions.tokenreviews.verbs }}
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
2 changes: 2 additions & 0 deletions charts/eks-pod-identity-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,5 @@ irsa:
permissions:
serviceaccounts:
verbs: ["get"]
tokenreviews:
verbs: ["create"]

0 comments on commit d29ed6a

Please sign in to comment.