Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ws-manager-mk2/config/rbac/leader_election_role.yaml
2499 views
1
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
# Licensed under the GNU Affero General Public License (AGPL).
3
# See License-AGPL.txt in the project root for license information.
4
5
# permissions to do leader election.
6
apiVersion: rbac.authorization.k8s.io/v1
7
kind: Role
8
metadata:
9
name: leader-election-role
10
rules:
11
- apiGroups:
12
- ""
13
resources:
14
- configmaps
15
verbs:
16
- get
17
- list
18
- watch
19
- create
20
- update
21
- patch
22
- delete
23
- apiGroups:
24
- coordination.k8s.io
25
resources:
26
- leases
27
verbs:
28
- get
29
- list
30
- watch
31
- create
32
- update
33
- patch
34
- delete
35
- apiGroups:
36
- ""
37
resources:
38
- events
39
verbs:
40
- create
41
- patch
42
43