Skip to content

Commit becf8d7

Browse files
committed
fix(dashboard): complete migration to cozy-dashboard naming and fix RBAC
- Rename ClusterRoleBinding and update ServiceAccount references - Update FlowSchema to use new cozy-dashboard-console service account - Add core.cozystack.io permissions for tenant resources Signed-off-by: IvanHunters <[email protected]>
1 parent 41b3551 commit becf8d7

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRoleBinding
33
metadata:
4-
name: incloud-web-cluster-view
4+
name: cozy-dashboard-cluster-view
55
roleRef:
66
apiGroup: rbac.authorization.k8s.io
77
kind: ClusterRole
88
name: view
99
subjects:
1010
- kind: ServiceAccount
11-
name: incloud-web-web
12-
namespace: incloud-web
11+
name: cozy-dashboard-console
12+
namespace: {{ .Release.Namespace }}

‎packages/system/dashboard/templates/flowschema.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
- subjects:
1111
- kind: ServiceAccount
1212
serviceAccount:
13-
name: incloud-web-web
13+
name: cozy-dashboard-console
1414
namespace: {{ .Release.Namespace }}
1515
resourceRules:
1616
- verbs: ["*"]

‎packages/system/dashboard/templates/rbac.yaml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ rules:
1212
- get
1313
- list
1414
- watch
15+
- apiGroups:
16+
- core.cozystack.io
17+
resources:
18+
- tenantmodules
19+
- tenantnamespaces
20+
- tenantsecrets
21+
verbs:
22+
- get
23+
- list
24+
- watch
1525
- apiGroups:
1626
- dashboard.cozystack.io
1727
resources:

0 commit comments

Comments
 (0)