wildfly-operator icon indicating copy to clipboard operation
wildfly-operator copied to clipboard

You dont need to be cluster-admin to be able to work with operator on OpenShift

Open mchoma opened this issue 6 years ago • 0 comments

Instructions how to install operator on OpenShift [1] are shown under cluster-admin role.

As role, role-binding and crd are cluster scoped resources I would expect that only cluster-admin can specify that.

However I wouldt expect to have cluster-admin role to be able to deploy application using operator with oc apply -f deploy/crds/quickstart-cr.yaml

To be able to run this as developer user have to be granted (by cluster-admin) these permission:

oc create role wildfly-server --verb=* --resource=wildflyservers.wildfly.org -n <namespace>
oc adm policy add-role-to-user wildfly-server developer --role-namespace=<namespace> -n <namespace>

Please make this clear in install procedure.

[1] https://github.com/wildfly/wildfly-operator#OpenShift

mchoma avatar Jul 02 '19 12:07 mchoma