Skip to content

Commit

Permalink
Add RBAC permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
enver committed Mar 30, 2023
1 parent 2e5dc8c commit 061a364
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions charts/re-label/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "app.name" . }}-clusterrole
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "patch", "update", "watch"]
---
apiVersion: "rbac.authorization.k8s.io/v1"
kind: ClusterRoleBinding
metadata:
name: {{ include "app.name" . }}-rolebinding
subjects:
- kind: ServiceAccount
name: {{ include "app.name" . }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: {{ include "app.name" . }}-clusterrole
apiGroup: rbac.authorization.k8s.io

0 comments on commit 061a364

Please sign in to comment.