Skip to content

Secrets deletion config#2582

Merged
FxKu merged 2 commits into
zalando:masterfrom
dmotte:pr-secrets-deletion-config
May 10, 2024
Merged

Secrets deletion config#2582
FxKu merged 2 commits into
zalando:masterfrom
dmotte:pr-secrets-deletion-config

Conversation

@dmotte

@dmotte dmotte commented Mar 15, 2024

Copy link
Copy Markdown
Contributor

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)

Comment thread e2e/tests/test_e2e.py Outdated
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
@dmotte
dmotte requested a review from FxKu March 27, 2024 16:15
@FxKu

FxKu commented Apr 24, 2024

Copy link
Copy Markdown
Contributor

👍

2 similar comments
@namgk

namgk commented Apr 24, 2024

Copy link
Copy Markdown

👍

@idanovinda

Copy link
Copy Markdown
Collaborator

👍

@FxKu
FxKu merged commit 13d6594 into zalando:master May 10, 2024
@FxKu

FxKu commented May 10, 2024

Copy link
Copy Markdown
Contributor

Thanks @dmotte

@Yingrjimsch

Copy link
Copy Markdown

@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

dmotte commented Aug 30, 2024

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown

@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