splatolm
takes as input a CSV file, and outputs the set of RBAC resources that OLM would generate for it on cluster.
$ git clone https://github.com/ecordell/splatolm.git && cd splatolm && go install
$ kubectl -n openshift-storage get csv ocs-operator.v4.5.0 -o yaml > ocs-csv.yaml
$ splatolm ocs-csv.yaml > rbac.yaml
$ kubectl apply -f rbac.yaml
# or
$ splatolm ocs-csv.yaml | kubectl apply -f