Skip to content

Commit dde7bb8

Browse files
deploy sonataflow related rbac (#1187)
* deploy sonataflow related rbac Signed-off-by: gazarenkov <gazarenkov@gmail.com> * Regenerate bundle/installer manifests Co-authored-by: gazarenkov <gazarenkov@users.noreply.github.com> --------- Signed-off-by: gazarenkov <gazarenkov@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: gazarenkov <gazarenkov@users.noreply.github.com>
1 parent e8fd0e9 commit dde7bb8

13 files changed

Lines changed: 126 additions & 15 deletions

File tree

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha2/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha3/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/backstage.io/manifests/backstage-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ metadata:
3535
}
3636
}
3737
]
38-
createdAt: "2025-05-12T12:54:39Z"
38+
createdAt: "2025-05-21T20:27:26Z"
3939
description: Backstage Operator
4040
operators.operatorframework.io/builder: operator-sdk-v1.37.0
4141
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4

bundle/rhdh/manifests/backstage-operator.clusterserviceversion.yaml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ metadata:
3939
categories: Developer Tools
4040
certified: "true"
4141
containerImage: registry.redhat.io/rhdh/rhdh-rhel9-operator:1.7
42-
createdAt: "2025-05-12T12:54:40Z"
42+
createdAt: "2025-05-21T20:27:25Z"
4343
description: Red Hat Developer Hub is a Red Hat supported version of Backstage.
4444
It comes with pre-built plug-ins and configuration settings, supports use of
4545
an external database, and can help streamline the process of setting up a self-managed
@@ -199,6 +199,44 @@ spec:
199199
- patch
200200
- update
201201
- watch
202+
- apiGroups:
203+
- sonataflow.org
204+
resources:
205+
- sonataflowplatforms
206+
- sonataflows
207+
verbs:
208+
- create
209+
- delete
210+
- get
211+
- list
212+
- patch
213+
- update
214+
- watch
215+
- apiGroups:
216+
- networking.k8s.io
217+
resources:
218+
- networkpolicies
219+
verbs:
220+
- create
221+
- delete
222+
- get
223+
- list
224+
- patch
225+
- update
226+
- watch
227+
- apiGroups:
228+
- operator.knative.dev
229+
resources:
230+
- knativeeventings
231+
- knativeservings
232+
verbs:
233+
- create
234+
- delete
235+
- get
236+
- list
237+
- patch
238+
- update
239+
- watch
202240
- apiGroups:
203241
- authentication.k8s.io
204242
resources:

config/profile/rhdh/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resources:
1010
- ../../rbac
1111
- ../../manager
1212
- namespace.yaml
13-
13+
- plugin-rbac
1414

1515
images:
1616
- name: controller

config/profile/rhdh/plugin-infra/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
- orchestrator/rbac-sonataflow.yaml
65
- orchestrator/infra-sonataflow.yaml
76
- orchestrator/infra-serverless.yaml
87

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- rbac-sonataflow.yaml
6+
7+

config/profile/rhdh/plugin-infra/orchestrator/rbac-sonataflow.yaml renamed to config/profile/rhdh/plugin-rbac/rbac-sonataflow.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRole
33
metadata:
4-
name: rhdh-manager-sonataflow-role
4+
name: manager-sonataflow-role
55
rules:
66
- apiGroups:
77
- "sonataflow.org"
@@ -51,11 +51,11 @@ metadata:
5151
app.kubernetes.io/managed-by: kustomize
5252
app.kubernetes.io/name: clusterrolebinding
5353
app.kubernetes.io/part-of: backstage-operator
54-
name: rhdh-manager-sonataflow-rolebinding
54+
name: manager-sonataflow-rolebinding
5555
roleRef:
5656
apiGroup: rbac.authorization.k8s.io
5757
kind: ClusterRole
58-
name: rhdh-manager-sonataflow-role
58+
name: manager-sonataflow-role
5959
subjects:
6060
- kind: ServiceAccount
6161
name: rhdh-controller-manager

dist/rhdh/install.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,6 +1409,50 @@ rules:
14091409
---
14101410
apiVersion: rbac.authorization.k8s.io/v1
14111411
kind: ClusterRole
1412+
metadata:
1413+
name: rhdh-manager-sonataflow-role
1414+
rules:
1415+
- apiGroups:
1416+
- sonataflow.org
1417+
resources:
1418+
- sonataflowplatforms
1419+
- sonataflows
1420+
verbs:
1421+
- create
1422+
- delete
1423+
- get
1424+
- list
1425+
- patch
1426+
- update
1427+
- watch
1428+
- apiGroups:
1429+
- networking.k8s.io
1430+
resources:
1431+
- networkpolicies
1432+
verbs:
1433+
- create
1434+
- delete
1435+
- get
1436+
- list
1437+
- patch
1438+
- update
1439+
- watch
1440+
- apiGroups:
1441+
- operator.knative.dev
1442+
resources:
1443+
- knativeeventings
1444+
- knativeservings
1445+
verbs:
1446+
- create
1447+
- delete
1448+
- get
1449+
- list
1450+
- patch
1451+
- update
1452+
- watch
1453+
---
1454+
apiVersion: rbac.authorization.k8s.io/v1
1455+
kind: ClusterRole
14121456
metadata:
14131457
labels:
14141458
app.kubernetes.io/component: rbac
@@ -1492,6 +1536,25 @@ subjects:
14921536
---
14931537
apiVersion: rbac.authorization.k8s.io/v1
14941538
kind: ClusterRoleBinding
1539+
metadata:
1540+
labels:
1541+
app.kubernetes.io/component: rbac
1542+
app.kubernetes.io/instance: manager-rolebinding
1543+
app.kubernetes.io/managed-by: kustomize
1544+
app.kubernetes.io/name: clusterrolebinding
1545+
app.kubernetes.io/part-of: backstage-operator
1546+
name: rhdh-manager-sonataflow-rolebinding
1547+
roleRef:
1548+
apiGroup: rbac.authorization.k8s.io
1549+
kind: ClusterRole
1550+
name: rhdh-manager-sonataflow-role
1551+
subjects:
1552+
- kind: ServiceAccount
1553+
name: rhdh-controller-manager
1554+
namespace: rhdh-operator
1555+
---
1556+
apiVersion: rbac.authorization.k8s.io/v1
1557+
kind: ClusterRoleBinding
14951558
metadata:
14961559
labels:
14971560
app.kubernetes.io/component: rbac

0 commit comments

Comments
 (0)