Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,8 @@ spec:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
Expand All @@ -81,7 +78,6 @@ spec:
- namespaces
verbs:
- get
- list
serviceAccountName: ibm-namespace-scope-operator
deployments:
- label:
Expand Down Expand Up @@ -166,23 +162,28 @@ spec:
- delete
- get
- list
- patch
- update
- watch
- deletecollection
- apiGroups:
- ""
resources:
- configmaps
- pods
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- get
- list
- watch
- apiGroups:
- operators.coreos.com
resources:
Expand All @@ -191,7 +192,6 @@ spec:
- get
- list
- patch
- update
- watch
- apiGroups:
- operator.ibm.com
Expand All @@ -212,21 +212,16 @@ spec:
- daemonsets
- statefulsets
verbs:
- delete
- get
- list
- patch
- update
- watch
- deletecollection
- create
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- get
- list
serviceAccountName: ibm-namespace-scope-operator
strategy: deployment
installModes:
Expand Down
21 changes: 8 additions & 13 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ rules:
- delete
- get
- list
- patch
- update
- watch
- deletecollection
Expand All @@ -19,22 +18,27 @@ rules:
- roles
- verbs:
- create
- delete
- get
- list
- patch
- update
- watch
apiGroups:
- ''
resources:
- configmaps
- verbs:
- delete
- get
- list
- watch
apiGroups:
- ''
resources:
- pods
- verbs:
- get
- list
- patch
- update
- watch
apiGroups:
- operators.coreos.com
Expand All @@ -53,14 +57,10 @@ rules:
- namespacescopes/status
- namespacescopes/finalizers
- verbs:
- delete
- get
- list
- patch
- update
- watch
- deletecollection
- create
apiGroups:
- apps
resources:
Expand All @@ -69,7 +69,6 @@ rules:
- statefulsets
- verbs:
- get
- list
apiGroups:
- ''
resources:
Expand All @@ -82,11 +81,8 @@ metadata:
rules:
# manage mutation webhook configuration
- verbs:
- create
- delete
- get
- list
- patch
- update
- watch
apiGroups:
Expand All @@ -96,7 +92,6 @@ rules:
- validatingwebhookconfigurations
- verbs:
- get
- list
apiGroups:
- ''
resources:
Expand Down
65 changes: 61 additions & 4 deletions deploy/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,75 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: ibm-namespace-scope-operator
rules:
- apiGroups:
- "*"
- rbac.authorization.k8s.io
resources:
- "*"
- rolebindings
- roles
verbs:
- create
- delete
- get
- list
- update
- watch
- deletecollection
- apiGroups:
- ""
resources:
- configmaps
verbs:
- create
- get
- list
- update
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- delete
- get
- list
- watch
- apiGroups:
- operators.coreos.com
resources:
- clusterserviceversions
verbs:
- get
- list
- patch
- watch
- apiGroups:
- operator.ibm.com
resources:
- namespacescopes
- namespacescopes/status
- namespacescopes/finalizers
verbs:
- get
- list
- patch
- update
- watch
- watch
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- statefulsets
verbs:
- get
- patch
- update
- watch
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- get
4 changes: 0 additions & 4 deletions helm-cluster-scoped/templates/01-cluster-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ metadata:
{{- end}}
rules:
- verbs:
- create
- delete
- get
- list
- patch
- update
- watch
apiGroups:
Expand All @@ -30,7 +27,6 @@ rules:
- validatingwebhookconfigurations
- verbs:
- get
- list
apiGroups:
- ''
resources:
Expand Down
17 changes: 8 additions & 9 deletions helm/templates/00-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ rules:
- delete
- get
- list
- patch
- update
- watch
- deletecollection
Expand All @@ -36,22 +35,27 @@ rules:
- roles
- verbs:
- create
- delete
- get
- list
- patch
- update
- watch
apiGroups:
- ''
resources:
- configmaps
- verbs:
- delete
- get
- list
- watch
apiGroups:
- ''
resources:
- pods
- verbs:
- get
- list
- patch
- update
- watch
apiGroups:
- operators.coreos.com
Expand All @@ -70,14 +74,10 @@ rules:
- namespacescopes/status
- namespacescopes/finalizers
- verbs:
- delete
- get
- list
- patch
- update
- watch
- deletecollection
- create
apiGroups:
- apps
resources:
Expand All @@ -86,7 +86,6 @@ rules:
- statefulsets
- verbs:
- get
- list
apiGroups:
- ''
resources:
Expand Down