Skip to content

Commit 8e62bb2

Browse files
committed
feat(rbac): add cluster role and binding for pod identity webhook access
1 parent 9faa06a commit 8e62bb2

File tree

1 file changed

+21
-0
lines changed
  • charts/internal/shoot-system-components/charts/stackit-pod-identity-webhook/templates

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: stackit-pod-identity-webhook-access
5+
rules:
6+
- apiGroups: [""]
7+
resources: ["serviceaccounts"]
8+
verbs: ["get", "list", "watch"]
9+
---
10+
apiVersion: rbac.authorization.k8s.io/v1
11+
kind: ClusterRoleBinding
12+
metadata:
13+
name: stackit-pod-identity-webhook-access-binding
14+
subjects:
15+
- kind: ServiceAccount # from shoot access secret
16+
name: pod-identity-webhook
17+
namespace: kube-system
18+
roleRef:
19+
kind: ClusterRole
20+
name: stackit-pod-identity-webhook-access
21+
apiGroup: rbac.authorization.k8s.io

0 commit comments

Comments
 (0)