Skip to content

Commit

Permalink
Add RBAC permission for appcatalog
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Oct 3, 2018
1 parent 6c8c232 commit 9ffffe0
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chart/kubedb/templates/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ rules:
resources:
- "*"
verbs: ["*"]
- apiGroups:
- appcatalog.appscode.com
resources:
- "*"
verbs: ["*"]
- apiGroups:
- monitoring.coreos.com
resources:
Expand Down
11 changes: 11 additions & 0 deletions chart/kubedb/templates/user-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rules:
- apiGroups:
- kubedb.com
- catalog.kubedb.com
- appcatalog.appscode.com
resources:
- "*"
verbs: ["*"]
Expand Down Expand Up @@ -52,6 +53,11 @@ rules:
- postgresversions
- redisversions
verbs: ["get", "list", "watch"]
- apiGroups:
- appcatalog.appscode.com
resources:
- "*"
verbs: ["get", "list", "watch"]
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -85,4 +91,9 @@ rules:
- postgresversions
- redisversions
verbs: ["get", "list", "watch"]
- apiGroups:
- appcatalog.appscode.com
resources:
- "*"
verbs: ["get", "list", "watch"]
{{ end }}
5 changes: 5 additions & 0 deletions hack/deploy/rbac-list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ rules:
resources:
- "*"
verbs: ["*"]
- apiGroups:
- appcatalog.appscode.com
resources:
- "*"
verbs: ["*"]
- apiGroups:
- monitoring.coreos.com
resources:
Expand Down
11 changes: 11 additions & 0 deletions hack/deploy/user-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ rules:
- apiGroups:
- kubedb.com
- catalog.kubedb.com
- appcatalog.appscode.com
resources:
- "*"
verbs: ["*"]
Expand Down Expand Up @@ -45,6 +46,11 @@ rules:
- postgresversions
- redisversions
verbs: ["get", "list", "watch"]
- apiGroups:
- appcatalog.appscode.com
resources:
- "*"
verbs: ["get", "list", "watch"]
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -75,3 +81,8 @@ rules:
- postgresversions
- redisversions
verbs: ["get", "list", "watch"]
- apiGroups:
- appcatalog.appscode.com
resources:
- "*"
verbs: ["get", "list", "watch"]

0 comments on commit 9ffffe0

Please sign in to comment.