Skip to content
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

Secrets deletion config #2582

Merged
merged 2 commits into from
May 10, 2024
Merged

Conversation

dmotte
Copy link
Contributor

@dmotte dmotte commented Mar 15, 2024

This PR introduces a configuration option to provide a way to disable the deletion of Kubernetes secrets: enable_secrets_deletion (default true).

Ratio: see #1736 (comment)

I think many people would love this feature. This also relates to #2579, which otherwise wouldn't make much sense, because attaching already-existing volumes to a brand new cluster doesn't work due to different secrets.

Inspired by #2579 (huge thanks to @FxKu)

e2e/tests/test_e2e.py Outdated Show resolved Hide resolved
@dmotte dmotte requested a review from FxKu March 27, 2024 16:15
@FxKu
Copy link
Member

FxKu commented Apr 24, 2024

👍

2 similar comments
@namgk
Copy link

namgk commented Apr 24, 2024

👍

@idanovinda
Copy link
Member

👍

@FxKu FxKu merged commit 13d6594 into zalando:master May 10, 2024
5 checks passed
@FxKu
Copy link
Member

FxKu commented May 10, 2024

Thanks @dmotte

@Yingrjimsch
Copy link

@dmotte as far as I've understood this configuration is per operator. Is there a way to let the postgres cluster decide if it should keep the secret?

@dmotte
Copy link
Contributor Author

dmotte commented Aug 30, 2024

@Yingrjimsch I think it can be implemented by adding a config option to the cluster manifest. To be honest I don't need it, but, if you want to give it a try, feel free to add me as a reviewer :)

@Yingrjimsch
Copy link

@dmotte I've added the functionallity here and mentioned you in the pull request, it is fairly simple but effective for our use case. If you have any suggestions just let me know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants