Skip to content

Commit

Permalink
Merge pull request #3 from valentinpelus/fix/charts/role_and_role_bin…
Browse files Browse the repository at this point in the history
…ding_wrong_scope_definition

fix(charts): switch role and roleBinding to cluster scoped permissions
  • Loading branch information
muvaf authored Apr 29, 2024
2 parents 0dcf612 + bfddb5d commit 74fcbe8
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
app.kubernetes.io/part-of: crik
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
name: crik-node-state-server
labels:
Expand All @@ -25,16 +25,17 @@ rules:
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
kind: ClusterRoleBinding
metadata:
name: crik-node-state-server
labels:
app.kubernetes.io/name: crik-node-state-server
app.kubernetes.io/part-of: crik
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
kind: ClusterRole
name: crik-node-state-server
subjects:
- kind: ServiceAccount
name: crik-node-state-server
namespace: {{ .Release.Namespace }}

0 comments on commit 74fcbe8

Please sign in to comment.