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

Update Secret Key References when replicating secret #359

Open
kachi-app opened this issue Nov 26, 2024 · 0 comments
Open

Update Secret Key References when replicating secret #359

kachi-app opened this issue Nov 26, 2024 · 0 comments

Comments

@kachi-app
Copy link

kachi-app commented Nov 26, 2024

Is your feature request related to a problem? Please describe.
I am using cert-manager to generate self signed certificate, then attached to bitnami mongodb Helm Charts. however cert-manager / bitnami mongodb doesn't allow to specify the tls key and crt. I am using this replicator to replicate my secrets, and I hope that replicator could have this feature.

https://artifacthub.io/packages/helm/bitnami/mongodb?modal=values&path=tls.caCert
https://cert-manager.io/docs/configuration/selfsigned/

Describe the solution you'd like
add a new annotations

annotations:
  replicator.v1.mittwald.de/secret-type-update: "Opaque"
  replicator.v1.mittwald.de/secret-key-update: |
    tls.key: example.key
    tls.crt: example.crt

if not specified, just keep as is
If not found, ignore
It could be multiline string, key=val separated by comma (,) or semi colon (;)

Results:

# From
type: kubernetes.io/tls
data:
  tls.crt: "xxxxx"
  tls.key: "aa"
# To
type: Opaque
data:
  example.key: "aa"
  example.crt: "xxxxx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant