Orphan secret on SecretProviderClass deletion #1584
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
What steps did you take and what happened:
SecretProviderClass
secret
to be createdSecretProviderClass
with a new oneWhat did you expect to happen:
Old secret should be deleted
Anything else you would like to add:
My first issue was that a change in the
SecretProviderClass
didn't update the related secret. In my helm chart I implemented this solution: #389 (comment) (add a{{ .Release.Revision }}
suffix at the end ofSecretProviderClass
/secretName
). So it creates a new secret at every release but doesn't delete the previous one, so I end up with orphan secrets.Which provider are you using:
AWS Secret Manager
The text was updated successfully, but these errors were encountered: