I am using openshift 4.7 operatorhub installation . it failed on operator installation due to abence of image and i added the docker hub image, but it failed on permission issue.
I am using openshift 4.7 operatorhub installation . it failed on operator installation due to abence of image and i added the docker hub image, but it failed on permission issue.
forbidden: User “system:serviceaccount:gbditmft-sit:entando-operator” cannot list resource “customresourcedefinitions” in API group “” at the cluster scope.
af71194@LC02CHB58MD6R entando % oc describe sa entando-operator
Name: entando-operator
Namespace: gbditmft-sit
Annotations:
Image pull secrets: entando-operator-dockercfg-j4bf5
Mountable secrets: entando-operator-token-6gfr6
entando-operator-dockercfg-j4bf5
Tokens: entando-operator-token-6gfr6
entando-operator-token-bhkcg
Events:
af71194@LC02CHB58MD6R entando % oc describe clusterrolebinding entando-rolebinding
Name: entando-rolebinding
Labels:
Annotations:
Role:
Kind: ClusterRole
Name: entando-role
Subjects:
Kind Name Namespace
ServiceAccount entando-operator gbditmft-sit
af71194@LC02CHB58MD6R entando % oc describe clusterrole entando-role
Name: entando-role
Labels:
Annotations:
PolicyRule:
Resources Non-Resource URLs Resource Names Verbs
customresourcedefinitions [] [] [list]
af71194@LC02CHB58MD6R entando % kubectl auth can-i --as=entando-operator list customresourcedefinitions
Warning: resource ‘customresourcedefinitions’ is not namespace scoped in group
no
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:583)
I tried the above – created a new clusterrole, role binded to the service account, but still not able to grant the required privilege to entando-operator service account !!!
I tried the above – created a new clusterrole, role binded to the service account, but still not able to grant the required privilege to entando-operator service account !!!