Skip to content

Commit

Permalink
make generate bundle manifests
Browse files Browse the repository at this point in the history
Signed-off-by: Ronny Baturov <[email protected]>
  • Loading branch information
rbaturov committed Dec 15, 2024
1 parent 8eff4bf commit b827ccd
Show file tree
Hide file tree
Showing 4 changed files with 274 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: numaresources-manager-role
rules:
- apiGroups:
- ""
resources:
- configmaps
- serviceaccounts
- services
verbs:
- '*'
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- '*'
- apiGroups:
- apps
resources:
- daemonsets
- deployments
verbs:
- '*'
- apiGroups:
- config.openshift.io
resources:
- clusteroperators
- infrastructures
verbs:
- get
- apiGroups:
- config.openshift.io
resources:
- clusterversions
verbs:
- list
- apiGroups:
- machineconfiguration.openshift.io
resources:
- kubeletconfigs
- machineconfigpools
verbs:
- get
- list
- watch
- apiGroups:
- machineconfiguration.openshift.io
resources:
- kubeletconfigs/finalizers
verbs:
- update
- apiGroups:
- machineconfiguration.openshift.io
resources:
- machineconfigs
verbs:
- '*'
- apiGroups:
- nodetopology.openshift.io
resources:
- numaresourcesoperators
verbs:
- '*'
- apiGroups:
- nodetopology.openshift.io
resources:
- numaresourcesoperators/finalizers
- numaresourcesschedulers/finalizers
verbs:
- update
- apiGroups:
- nodetopology.openshift.io
resources:
- numaresourcesoperators/status
- numaresourcesschedulers/status
verbs:
- get
- patch
- update
- apiGroups:
- nodetopology.openshift.io
resources:
- numaresourcesschedulers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- clusterroles
- rolebindings
- roles
verbs:
- '*'
- apiGroups:
- security.openshift.io
resources:
- securitycontextconstraints
verbs:
- '*'
- apiGroups:
- topology.node.k8s.io
resources:
- noderesourcetopologies
verbs:
- create
- get
- list
- update
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
creationTimestamp: null
name: numaresources-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: manager-role
subjects:
- kind: ServiceAccount
name: numaresources-controller-manager
namespace: numaresources
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ metadata:
}
]
capabilities: Basic Install
createdAt: "2024-11-14T15:38:47Z"
createdAt: "2024-12-15T09:49:16Z"
olm.skipRange: '>=4.17.0 <4.18.0'
operators.operatorframework.io/builder: operator-sdk-v1.36.1
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
Expand Down Expand Up @@ -358,6 +358,7 @@ spec:
resources:
- configmaps
- serviceaccounts
- services
verbs:
- '*'
- apiGroups:
Expand Down
128 changes: 125 additions & 3 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,134 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
name: manager-role
namespace: system
rules:
- apiGroups:
- ""
resources:
- configmaps
- serviceaccounts
- services
verbs:
- '*'
- '*'
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- '*'
- apiGroups:
- apps
resources:
- daemonsets
- deployments
verbs:
- '*'
- apiGroups:
- config.openshift.io
resources:
- clusteroperators
- infrastructures
verbs:
- get
- apiGroups:
- config.openshift.io
resources:
- clusterversions
verbs:
- list
- apiGroups:
- machineconfiguration.openshift.io
resources:
- kubeletconfigs
- machineconfigpools
verbs:
- get
- list
- watch
- apiGroups:
- machineconfiguration.openshift.io
resources:
- kubeletconfigs/finalizers
verbs:
- update
- apiGroups:
- machineconfiguration.openshift.io
resources:
- machineconfigs
verbs:
- '*'
- apiGroups:
- nodetopology.openshift.io
resources:
- numaresourcesoperators
verbs:
- '*'
- apiGroups:
- nodetopology.openshift.io
resources:
- numaresourcesoperators/finalizers
- numaresourcesschedulers/finalizers
verbs:
- update
- apiGroups:
- nodetopology.openshift.io
resources:
- numaresourcesoperators/status
- numaresourcesschedulers/status
verbs:
- get
- patch
- update
- apiGroups:
- nodetopology.openshift.io
resources:
- numaresourcesschedulers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- clusterroles
- rolebindings
- roles
verbs:
- '*'
- apiGroups:
- security.openshift.io
resources:
- securitycontextconstraints
verbs:
- '*'
- apiGroups:
- topology.node.k8s.io
resources:
- noderesourcetopologies
verbs:
- create
- get
- list
- update

0 comments on commit b827ccd

Please sign in to comment.