Skip to content

Conversation

@antonlisovenko
Copy link
Contributor

Adds support for database user removal. Ensures connection secrets are removed as well.

In addition checks for the database user statuses to contain connection secrets information - this was missed in the previous PR

- type
type: object
type: array
connectionSecrets:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

forgot to run make manifests in the previous PR

antonlisovenko added 2 commits March 8, 2021 12:36
@antonlisovenko antonlisovenko marked this pull request as ready for review March 8, 2021 15:14
Copy link
Contributor

@vasilevp vasilevp left a comment

Choose a reason for hiding this comment

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

LGTM


for _, secret := range secrets {
// Solves the "Implicit memory aliasing in for loop" linter error
s := secret.DeepCopy()
Copy link
Contributor

Choose a reason for hiding this comment

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

Alternatively, we could use secrets[i]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea, will use in the future!

@antonlisovenko antonlisovenko merged commit 150732d into main Mar 10, 2021
@antonlisovenko antonlisovenko deleted the CLOUDP-82591_delete-users branch March 10, 2021 11:44
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.

4 participants