Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #64 from flanksource/moshloop
Browse files Browse the repository at this point in the history
fix: add leases to leader-election role
  • Loading branch information
moshloop committed Apr 28, 2021
2 parents d053acb + 0aaf117 commit e4a82b1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/deploy/base.yml
Expand Up @@ -36,6 +36,18 @@ rules:
- events
verbs:
- create
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
12 changes: 12 additions & 0 deletions config/deploy/manifests.yaml
Expand Up @@ -318,6 +318,18 @@ rules:
- events
verbs:
- create
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
12 changes: 12 additions & 0 deletions config/operator/rbac/leader_election_role.yaml
Expand Up @@ -30,3 +30,15 @@ rules:
- events
verbs:
- create
- apiGroups:
- "coordination.k8s.io"
resources:
- "leases"
verbs:
- get
- list
- watch
- create
- update
- patch
- delete

0 comments on commit e4a82b1

Please sign in to comment.