Skip to content

Commit

Permalink
fix: New ClusterRole service-binding-provisioned-service, updated exi…
Browse files Browse the repository at this point in the history
…sting roles

Signed-off-by: Rashed Kamal <krashed@vmware.com>
  • Loading branch information
rashedkvm committed Jun 9, 2022
1 parent 7f1139f commit 4f2c608
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
17 changes: 14 additions & 3 deletions config/200-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
aggregationRule:
clusterRoleSelectors:
- matchLabels:
servicebinding.io/controller: "true"
bindings.labs.vmware.com/admin: "true"
# legacy support
- matchLabels:
service.binding/controller: "true"
Expand All @@ -22,7 +22,7 @@ metadata:
name: service-binding-core
labels:
bindings.labs.vmware.com/release: devel
servicebinding.io/controller: "true"
bindings.labs.vmware.com/admin: "true"
rules:
- apiGroups: [""]
resources: ["configmaps", "services", "secrets", "events", "namespaces"]
Expand All @@ -46,7 +46,7 @@ metadata:
name: service-binding-crd
labels:
bindings.labs.vmware.com/release: devel
servicebinding.io/controller: "true"
bindings.labs.vmware.com/admin: "true"
rules:
- apiGroups: ["servicebinding.io"]
resources: ["*"]
Expand Down Expand Up @@ -100,3 +100,14 @@ rules:
- apiGroups: ["servicebinding.io"]
resources: ["servicebindings"]
verbs: ["get","list","watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: service-binding-provisioned-service
labels:
servicebinding.io/controller: "true"
rules:
- apiGroups: ["bindings.labs.vmware.com"]
resources: ["*"]
verbs: ["get","list","watch"]
1 change: 1 addition & 0 deletions config/201-clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
name: service-binding-controller-admin
labels:
bindings.labs.vmware.com/release: devel
bindings.labs.vmware.com/admin: "true"
subjects:
- kind: ServiceAccount
name: controller
Expand Down

0 comments on commit 4f2c608

Please sign in to comment.