Skip to content

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

Merged
merged 2 commits into from
Mar 19, 2020
Merged

CLOUDP-57839: Create db users, C/OM #54

merged 2 commits into from
Mar 19, 2020

Conversation

gssbzn
Copy link
Collaborator

@gssbzn gssbzn commented Mar 19, 2020

Proposed changes

Jira ticket: CLOUDP-57839

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

@gssbzn gssbzn requested a review from andreaangiolillo March 19, 2020 13:06
@@ -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),
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small grammatical fix fix

Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gssbzn
Copy link
Collaborator Author

gssbzn commented Mar 19, 2020

@andreaangiolillo I'm merging this, please be aware we may have conflicts on your branch with the flags and usage changes

@gssbzn gssbzn merged commit 9df5aa7 into master Mar 19, 2020
@gssbzn gssbzn deleted the CLOUDP-57839 branch March 19, 2020 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants