Skip to content

Commit

Permalink
Add RBAC for "coordination.k8s.io" used by MCM
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTheEvilOne committed Feb 1, 2022
1 parent 75bd629 commit ed1215f
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: extensions.gardener.cloud:{{ .Values.providerName }}:{{ .Release.Namespace }}:machine-controller-manager
ownerReferences:
- apiVersion: v1
kind: Namespace
name: {{ .Release.Namespace }}
uid: {{ .Values.namespace.uid }}
controller: true
blockOwnerDeletion: true
rules:
- apiGroups:
- machine.sapcloud.io
Expand All @@ -19,3 +26,20 @@ rules:
- events
verbs:
- "*"
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- apiGroups:
- coordination.k8s.io
resources:
- leases
resourceNames:
- machine-controller
- machine-controller-manager
verbs:
- get
- watch
- update

0 comments on commit ed1215f

Please sign in to comment.