Skip to content

Commit

Permalink
Merge pull request #84 from knikolla/fix/rolebinding
Browse files Browse the repository at this point in the history
Change kind of Role to ClusterRole
  • Loading branch information
knikolla authored Aug 26, 2022
2 parents 8f01758 + fa6ccff commit acd4f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acct_mgt/moc_openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def create_rolebindings(self, project_name, user_name, role):
"apiVersion": "rbac.authorization.k8s.io/v1",
"metadata": {"name": role, "namespace": project_name},
"subjects": [{"name": user_name, "kind": "User"}],
"roleRef": {"name": role, "kind": "Role"},
"roleRef": {"name": role, "kind": "ClusterRole"},
}
return self.client.post(url, json=payload)

Expand Down

0 comments on commit acd4f46

Please sign in to comment.