Skip to content

Commit

Permalink
allow csi-lvm-controller leaderselection by leases (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwennrich authored Feb 29, 2024
1 parent 7ee471e commit ccd571d
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions charts/internal/shoot-storageclasses/templates/storageclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rules:
- persistentvolumes
- pods
verbs:
- "*"
- '*'
- apiGroups:
- ""
resources:
Expand All @@ -69,6 +69,17 @@ rules:
- podsecuritypolicies
verbs:
- use
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- update
- patch
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down Expand Up @@ -173,12 +184,19 @@ metadata:
name: csi-lvm-reviver
namespace: csi-lvm
rules:
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["*"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create", "patch"]
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- '*'
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down

0 comments on commit ccd571d

Please sign in to comment.