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
Add new astro cli commands to support RBAC in Orbit #214
Conversation
d081525
to
dbd5e17
Compare
return nil | ||
} | ||
} | ||
return errors.Errorf("please use one of: %s", strings.Join(validRoles, ", ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schnie Please take a look on error message? sounds good?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine to me
@@ -80,6 +80,14 @@ var ( | |||
RunE: workspaceUserAdd, | |||
} | |||
|
|||
workspaceUserUpdateCmd = &cobra.Command{ | |||
Use: "update user role", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schnie ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
cmd/workspace.go
Outdated
ws, err := coalesceWorkspace() | ||
if err != nil { | ||
return errors.Wrap(err, "failed to find a valid workspace") | ||
// fmt.Println("Default workspace id not set, set default workspace id or pass a workspace in via the --workspace-id flag") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we delete this commented out line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
return nil | ||
} | ||
} | ||
return errors.Errorf("please use one of: %s", strings.Join(validRoles, ", ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine to me
@@ -80,6 +80,14 @@ var ( | |||
RunE: workspaceUserAdd, | |||
} | |||
|
|||
workspaceUserUpdateCmd = &cobra.Command{ | |||
Use: "update user role", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
cmd/workspace.go
Outdated
workspaceUserUpdateCmd = &cobra.Command{ | ||
Use: "update user role", | ||
Short: "Update a user to a workspace", | ||
Long: "Update a user to a workspace", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "Update a user's role for a workspace"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
cmd/workspace.go
Outdated
workspaceUserListCmd = &cobra.Command{ | ||
Use: "list", | ||
Short: "Print list of user roles", | ||
Long: "Print list of user roles", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "List users in a workspace"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
|
Fix #212