Skip to content

Commit

Permalink
add necessary roles
Browse files Browse the repository at this point in the history
Signed-off-by: souravbiswassanto <[email protected]>
  • Loading branch information
souravbiswassanto committed Aug 2, 2024
1 parent db0ca95 commit c0e53e0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/kubedb-crd-manager/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ metadata:
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded,hook-failed
rules:
- apiGroups:
- batch
resources:
- jobs
verbs: ["get"]
- apiGroups:
- apps
resources:
- deployments
verbs: ["list", "update", "get"]
- apiGroups:
- apiextensions.k8s.io
resources:
Expand Down
15 changes: 15 additions & 0 deletions charts/kubedb-webhook-server/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ metadata:
labels:
{{- include "kubedb-webhook-server.labels" . | nindent 4 }}
rules:
- apiGroups:
- kubedb.com
resources:
- postgreses
verbs: ["*"]
- apiGroups:
- admissionregistration.k8s.io
resources:
Expand Down Expand Up @@ -32,6 +37,16 @@ rules:
resources:
- events
verbs: ["create"]
- apiGroups:
- ""
resources:
- pods
verbs: ["get", "update", "list"]
- apiGroups:
- ""
resources:
- pods/status
verbs: ["get", "update"]
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit c0e53e0

Please sign in to comment.