Skip to content

Commit af90d03

Browse files
committed
update rbac and bundle
Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
1 parent 53bb57b commit af90d03

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

bundle/manifests/netobserv-operator.clusterserviceversion.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ spec:
10221022
- apiGroups:
10231023
- bpfman.io
10241024
resources:
1025-
- bpfapplications
1025+
- clusterbpfapplications
10261026
verbs:
10271027
- create
10281028
- delete
@@ -1031,6 +1031,14 @@ spec:
10311031
- patch
10321032
- update
10331033
- watch
1034+
- apiGroups:
1035+
- bpfman.io
1036+
resources:
1037+
- clusterbpfapplications/status
1038+
verbs:
1039+
- get
1040+
- patch
1041+
- update
10341042
- apiGroups:
10351043
- config.openshift.io
10361044
resources:

config/rbac/role.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ rules:
9090
- bpfman.io
9191
resources:
9292
- clusterbpfapplications
93-
- clusterbpfapplicationstates
94-
- bpfapplications
95-
- bpfapplicationstates
9693
verbs:
9794
- create
9895
- delete
@@ -101,6 +98,14 @@ rules:
10198
- patch
10299
- update
103100
- watch
101+
- apiGroups:
102+
- bpfman.io
103+
resources:
104+
- clusterbpfapplications/status
105+
verbs:
106+
- get
107+
- patch
108+
- update
104109
- apiGroups:
105110
- config.openshift.io
106111
resources:

pkg/manager/manager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ import (
3535
//+kubebuilder:rbac:groups=loki.grafana.com,resources=network,resourceNames=logs,verbs=create
3636
//+kubebuilder:rbac:groups=metrics.k8s.io,resources=pods,verbs=create
3737
//+kubebuilder:rbac:groups=networking.k8s.io,resources=networkpolicies,verbs=get;list;watch;create;update;patch;delete
38-
//+kubebuilder:rbac:groups=bpfman.io,resources=bpfapplications,verbs=get;list;watch;create;update;patch;delete
38+
//+kubebuilder:rbac:groups=bpfman.io,resources=clusterbpfapplications,verbs=get;list;watch;create;update;patch;delete
39+
//+kubebuilder:rbac:groups=bpfman.io,resources=clusterbpfapplications/status,verbs=get;update;patch
3940
//+kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch
4041
//+kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions/status,verbs=update;patch
4142
//+kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=create;delete;patch;update;get;watch;list

0 commit comments

Comments
 (0)