Skip to content

Commit 48a7eef

Browse files
committed
added permission for events
1 parent 67ca089 commit 48a7eef

File tree

6 files changed

+22
-340
lines changed

6 files changed

+22
-340
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Database controller
22

33
Kubernetes Controller that deals with database and user provisioning.
4+
**Note**: This controller does not deploy database servers but rather manage on top of existing ones, use existing operators for this.
45

56
## Example for PostgreSQL
67

chart/kubedb/crds/.gitkeep

Whitespace-only changes.

chart/kubedb/crds/infra.doodle.com_mongodbdatabases.yaml

Lines changed: 0 additions & 170 deletions
This file was deleted.

chart/kubedb/crds/infra.doodle.com_postgresqldatabases.yaml

Lines changed: 0 additions & 170 deletions
This file was deleted.

chart/kubedb/templates/clusterrole.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,16 @@ rules:
4646
- get
4747
- patch
4848
- update
49+
- apiGroups:
50+
- ""
51+
resources:
52+
- events
53+
verbs:
54+
- create
55+
- delete
56+
- get
57+
- list
58+
- patch
59+
- update
60+
- watch
4961
{{- end }}

chart/kubedb/templates/role.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ rules:
3434
verbs:
3535
- delete
3636
- get
37+
- apiGroups:
38+
- "coordination.k8s.io"
39+
resources:
40+
- leases
41+
verbs:
42+
- create
43+
- delete
44+
- update
45+
- get

0 commit comments

Comments
 (0)