To enable the source code editor, you must grant read access to the CheClusters resource in the ClusterRole
as shown in the following example code:
...
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: backstage-read-only
rules:
...
- apiGroups:
- org.eclipse.che
resources:
- checlusters
verbs:
- get
- list
To use the source code editor, you must add the following configuration to the kubernetes.customResources
property in your {my-app-config-file}
file:
kubernetes:
...
customResources:
- group: 'org.eclipse.che'
apiVersion: 'v2'
plural: 'checlusters'