-
Notifications
You must be signed in to change notification settings - Fork 981
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
Remove all secrets on delete incl. pooler #1091
Conversation
9c6c823
to
521c27f
Compare
} else { | ||
uid := secret.UID | ||
if err = c.deleteSecret(uid, *secret); err != nil { | ||
return fmt.Errorf("could not delete pooler secret: %v", err) |
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.
does this prevent deletion of e.g deployment? disable pooler should cleanup as good as it gets.
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.
nope. 1. Deployment, 2. Service, 3. Secret
It's true, however, that if 1. or 2. return an error the rest is not deleted.
👍 |
👍 |
1 similar comment
👍 |
This PR sets secrets on SYNC, so that they can be deleted.
On connection pooler deletion the corresponding secret is now removed via API call. Because of the way roles and secrets are synced with the
needCoonectionPooler
condition, the pooler user and secret are no longer set after deletion. But resources would still be there. For the database user it's fine - operator does not delete those in general - but the secret should go.