-
Notifications
You must be signed in to change notification settings - Fork 86
CLOUDP-57839: Create db users, C/OM #54
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
Conversation
@@ -59,7 +59,7 @@ func (opts *atlasDBUsersCreateOpts) Run() error { | |||
func (opts *atlasDBUsersCreateOpts) newDatabaseUser() *atlas.DatabaseUser { | |||
return &atlas.DatabaseUser{ | |||
DatabaseName: convert.AdminDB, | |||
Roles: convert.BuildRoles(opts.roles), | |||
Roles: convert.BuildAtlasRoles(opts.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.
Renamed as now we have one for OM
@@ -32,7 +32,7 @@ type cmClustersApplyOpts struct { | |||
*globalOpts | |||
filename string | |||
fs afero.Fs | |||
store store.AutomationStore | |||
store store.AutomationPatcher |
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.
Store now has also a list of cluster which we don't need so making this interface more flexible
@@ -51,7 +51,7 @@ func cloudManagerClustersListRun(opts *cloudManagerClustersListOpts) (interface{ | |||
var err error | |||
|
|||
if opts.projectID == "" && config.Service() == config.OpsManagerService { | |||
result, err = opts.store.ListAllClustersProjects() | |||
result, err = opts.store.ListAllProjectClusters() |
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.
small grammatical fix fix
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.
LGTM
@andreaangiolillo I'm merging this, please be aware we may have conflicts on your branch with the flags and usage changes |
Proposed changes
Jira ticket: CLOUDP-57839
Checklist
make fmt
and formatted my code