Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external: fix the run as a user flag #13383

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions deploy/examples/create-external-cluster-resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,8 +997,8 @@ def get_rbd_node_caps_and_entity(self):

return caps, entity

def get_healthchecker_caps_and_entity(self):
entity = "client.healthchecker"
def get_defaultUser_caps_and_entity(self):
entity = self.run_as_user
caps = {
"mon": "allow r, allow command quorum_status, allow command version",
"mgr": "allow command config",
Expand Down Expand Up @@ -1027,7 +1027,7 @@ def get_caps_and_entity(self, user_name):
if "client.healthchecker" in user_name:
if "client.healthchecker" != user_name:
self._arg_parser.restricted_auth_permission = True
return self.get_healthchecker_caps_and_entity()
return self.get_defaultUser_caps_and_entity()

raise ExecutionFailureException(
f"no user found with user_name: {user_name}, "
Expand Down