Open dariolstella opened 4 months ago
hey @Jonsy13 could you PTAL
Hi @dariolstella The check is correct as we are checking for verbs. Can you please check if you have the required permissions via below commands -
kubectl auth can-i create role
kubectl auth can-i create rolebindings
both commands should result in yes
output
Hi @Jonsy13. Here's the output -> % oc auth can-i create role yes
% oc auth can-i create rolebindings yes
Thanks @dariolstella Will look into it. cc: @SarthakJain26
$ litmusctl config use-account
Host endpoint where litmus is installed: https://
Username: admin
✅ Successfully set the current account to 'admin' at 'https://'
$ litmusctl connect chaos-infra Project list:
Select a project [Range: 1-1]: 1
Installation Modes:
Select Mode [Default: cluster] [Range: 1-2]: 2
🏃 Running prerequisites check.... 🔑 role ❌ 🔑 rolebinding ❌ 🚫 You don't have sufficient permissions. 🙄 Please use a service account with sufficient permissions.
Looking at litmus-server-role the following is set -->
And in the ValidateSAPermissions function on ops.go the resources are like -->
if mode == "cluster" { resources = [2]string{"clusterrole", "clusterrolebinding"} } else { resources = [2]string{"role", "rolebinding"}
I guess that should be 'roles' and 'rolesbinding', right?.