Skip to content

Commit

Permalink
make sure that registration-service role matches the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MatousJobanek committed Sep 20, 2024
1 parent 576ad33 commit 3200b16
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions deploy/registration-service/registration-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ objects:
name: registration-service
namespace: ${NAMESPACE}
rules:
# !!! IMPORTANT !!!
# If there is a new resource added to this role, then revisit the registration-service client cache
# and make sure that the cache is pre-populated with all resources of this new kind.
# See: https://github.com/codeready-toolchain/registration-service/blob/36ce810d4c4cd68dc100646e8060ec94ae846f52/cmd/main.go#L192-L204
- apiGroups:
- toolchain.dev.openshift.com
resources:
Expand All @@ -31,7 +35,16 @@ objects:
- apiGroups:
- toolchain.dev.openshift.com
resources:
- "*"
- masteruserrecords
- socialevents
- spacebindings
- spaces
- toolchainconfigs
- toolchainstatuses
- proxyplugins
- nstemplatetiers
- bannedusers
- toolchainclusters
verbs:
- get
- list
Expand All @@ -40,11 +53,11 @@ objects:
- ""
resources:
- secrets
- configmaps
verbs:
- get
- list
- watch
# !!! IMPORTANT - see the comment above !!!
- kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down

0 comments on commit 3200b16

Please sign in to comment.